From f358462640beb7660b9ce2a31d5367fc33421ee1 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 6 Oct 2014 12:42:56 +0800 Subject: ilo: let shaders determine surface counts When a shader needs N surfaces, we should upload N surfaces and not depend on how many are bound. This commit is larger than it should be because we did not export how many surfaces a surface uses before. Signed-off-by: Chia-I Wu --- src/gallium/drivers/ilo/ilo_state.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/gallium/drivers/ilo/ilo_state.h') diff --git a/src/gallium/drivers/ilo/ilo_state.h b/src/gallium/drivers/ilo/ilo_state.h index c371716118c..a1d4b7bffcb 100644 --- a/src/gallium/drivers/ilo/ilo_state.h +++ b/src/gallium/drivers/ilo/ilo_state.h @@ -43,17 +43,7 @@ #define ILO_MAX_SO_BUFFERS 4 #define ILO_MAX_VIEWPORTS 1 -#define ILO_MAX_VS_SURFACES (ILO_MAX_CONST_BUFFERS + ILO_MAX_SAMPLER_VIEWS) -#define ILO_VS_CONST_SURFACE(i) (i) -#define ILO_VS_TEXTURE_SURFACE(i) (ILO_MAX_CONST_BUFFERS + i) - -#define ILO_MAX_GS_SURFACES (ILO_MAX_SO_BINDINGS) -#define ILO_GS_SO_SURFACE(i) (i) - -#define ILO_MAX_WM_SURFACES (ILO_MAX_DRAW_BUFFERS + ILO_MAX_CONST_BUFFERS + ILO_MAX_SAMPLER_VIEWS) -#define ILO_WM_DRAW_SURFACE(i) (i) -#define ILO_WM_CONST_SURFACE(i) (ILO_MAX_DRAW_BUFFERS + i) -#define ILO_WM_TEXTURE_SURFACE(i) (ILO_MAX_DRAW_BUFFERS + ILO_MAX_CONST_BUFFERS + i) +#define ILO_MAX_SURFACES 256 /** * States that we track. -- cgit v1.2.3