diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-04-01 11:28:27 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-04-01 11:28:27 -0600 |
commit | 6ddd2df1aec329be494d342dbd88a9f5af5e7b2c (patch) | |
tree | cf767b834fa1577e4355486bf0894bad95245ee7 /src/gallium/drivers/cell | |
parent | 9d287a184111693a1fbb9231b1d7a8afa56e9ae5 (diff) |
cell: return CELL_MAX_SAMPLERS to indicate number of texture units
Diffstat (limited to 'src/gallium/drivers/cell')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_screen.c | 3 |
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: |