summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-04-01 11:28:27 -0600
committerBrian <brian.paul@tungstengraphics.com>2008-04-01 11:28:27 -0600
commit6ddd2df1aec329be494d342dbd88a9f5af5e7b2c (patch)
treecf767b834fa1577e4355486bf0894bad95245ee7
parent9d287a184111693a1fbb9231b1d7a8afa56e9ae5 (diff)
cell: return CELL_MAX_SAMPLERS to indicate number of texture units
-rw-r--r--src/gallium/drivers/cell/ppu/cell_screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_screen.c b/src/gallium/drivers/cell/ppu/cell_screen.c
index 84b48bf4f1..5198b51441 100644
--- a/src/gallium/drivers/cell/ppu/cell_screen.c
+++ b/src/gallium/drivers/cell/ppu/cell_screen.c
@@ -31,6 +31,7 @@
#include "pipe/p_defines.h"
#include "pipe/p_screen.h"
+#include "cell/common.h"
#include "cell_screen.h"
#include "cell_texture.h"
#include "cell_winsys.h"
@@ -55,7 +56,7 @@ cell_get_param(struct pipe_screen *screen, int param)
{
switch (param) {
case PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS:
- return PIPE_MAX_SAMPLERS;
+ return CELL_MAX_SAMPLERS;
case PIPE_CAP_NPOT_TEXTURES:
return 0;
case PIPE_CAP_TWO_SIDED_STENCIL: