From: Marek Olšák Date: Sun, 6 Nov 2016 20:49:29 +0000 (+0100) Subject: radeonsi: decrease the number of texture slots to 24 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdd860e3076655519d45bd66936ef7be9b7dda63;p=mesa.git radeonsi: decrease the number of texture slots to 24 Company Of Heroes 2 needs only 24. This saves 512 bytes of CE RAM per shader stage. Tested-by: Edmondo Tommasina Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h index 6bfa4e79f06..3a9f0cf1acf 100644 --- a/src/gallium/drivers/radeonsi/si_state.h +++ b/src/gallium/drivers/radeonsi/si_state.h @@ -35,7 +35,7 @@ #define SI_MAX_ATTRIBS 16 #define SI_NUM_VERTEX_BUFFERS SI_MAX_ATTRIBS -#define SI_NUM_SAMPLERS 32 /* OpenGL textures units per shader */ +#define SI_NUM_SAMPLERS 24 /* OpenGL textures units per shader */ #define SI_NUM_CONST_BUFFERS 16 #define SI_NUM_IMAGES 16 #define SI_NUM_SHADER_BUFFERS 16