From 1e299ff828e808cbb1d92d9fedd528a3a8a3609e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 1 Apr 2009 13:36:48 -0600 Subject: i965: another checkpoint commit of new constant buffer support Everything is in place now for using a true constant buffer for GLSL fragment shaders. Still some bugs to find though. --- src/mesa/drivers/dri/i965/brw_wm.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mesa/drivers/dri/i965/brw_wm.h') diff --git a/src/mesa/drivers/dri/i965/brw_wm.h b/src/mesa/drivers/dri/i965/brw_wm.h index 98c22121ec..d0ab3bdc65 100644 --- a/src/mesa/drivers/dri/i965/brw_wm.h +++ b/src/mesa/drivers/dri/i965/brw_wm.h @@ -253,6 +253,14 @@ struct brw_wm_compile { GLuint tmp_index; GLuint tmp_max; GLuint subroutines[BRW_WM_MAX_SUBROUTINE]; + + /** using a real constant buffer? */ + GLboolean use_const_buffer; + /** we may need up to 3 constants per instruction (if use_const_buffer) */ + struct { + GLint index; + struct brw_reg reg; + } current_const[3]; }; -- cgit v1.2.3