radeonsi: decrease the number of texture slots to 24
authorMarek Olšák <marek.olsak@amd.com>
Sun, 6 Nov 2016 20:49:29 +0000 (21:49 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 21 Nov 2016 20:44:35 +0000 (21:44 +0100)
Company Of Heroes 2 needs only 24.

This saves 512 bytes of CE RAM per shader stage.

Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state.h

index 6bfa4e79f06b765730da3e56c87edcc64e9b0fc0..3a9f0cf1acf10b713d32365aa9afa04e6df05a07 100644 (file)
@@ -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