[Mesa-dev] [PATCH 05/20] radeonsi: decrease the number of texture slots to 24
Marek Olšák
maraeo at gmail.com
Wed Nov 16 18:38:28 UTC 2016
From: Marek Olšák <marek.olsak at amd.com>
Company Of Heroes 2 needs only 24.
This saves 512 bytes of CE RAM per shader stage.
---
src/gallium/drivers/radeonsi/si_state.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h
index c444a69..f7b49b0 100644
--- a/src/gallium/drivers/radeonsi/si_state.h
+++ b/src/gallium/drivers/radeonsi/si_state.h
@@ -28,21 +28,21 @@
#define SI_STATE_H
#include "si_pm4.h"
#include "radeon/r600_pipe_common.h"
#define SI_NUM_GRAPHICS_SHADERS (PIPE_SHADER_TESS_EVAL+1)
#define SI_NUM_SHADERS (PIPE_SHADER_COMPUTE+1)
#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
struct si_screen;
struct si_shader;
struct si_state_blend {
struct si_pm4_state pm4;
uint32_t cb_target_mask;
--
2.7.4
More information about the mesa-dev
mailing list