From: Brian Date: Tue, 1 Apr 2008 17:28:27 +0000 (-0600) Subject: cell: return CELL_MAX_SAMPLERS to indicate number of texture units X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ddd2df1aec329be494d342dbd88a9f5af5e7b2c;p=mesa.git cell: return CELL_MAX_SAMPLERS to indicate number of texture units --- diff --git a/src/gallium/drivers/cell/ppu/cell_screen.c b/src/gallium/drivers/cell/ppu/cell_screen.c index 84b48bf4f1b..5198b51441a 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: