diff options
author | Kenneth Graunke <[email protected]> | 2011-12-06 15:36:21 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-12-19 16:33:10 -0800 |
commit | 1b05fc7cdd0e5d77b50bc8ee2f2c851da5884d72 (patch) | |
tree | 5209272bd8bf3268280e27e16bda128250fd16dd /src/mesa/drivers/dri/i965/brw_wm.h | |
parent | 328b693a199a67ce3a17d258f34d7bfd26790871 (diff) |
i965/fs: Factor out texturing related data from brw_wm_prog_key.
The idea is to reuse this for the VS and (in the future) GS as well.
v2: Include yuvtex data since we're not dropping GL_MESA_ycbycr.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]> [v1]
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.h b/src/mesa/drivers/dri/i965/brw_wm.h index 596759269ad..3bce1f3dd8f 100644 --- a/src/mesa/drivers/dri/i965/brw_wm.h +++ b/src/mesa/drivers/dri/i965/brw_wm.h @@ -38,6 +38,7 @@ #include "program/prog_instruction.h" #include "brw_context.h" #include "brw_eu.h" +#include "brw_program.h" #define SATURATE (1<<5) @@ -68,27 +69,13 @@ struct brw_wm_prog_key { GLuint clamp_fragment_color:1; GLuint line_aa:2; - /** - * Per-sampler comparison functions: - * - * If comparison mode is GL_COMPARE_R_TO_TEXTURE, then this is set to one - * of GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, - * GL_GEQUAL, or GL_ALWAYS. Otherwise (comparison mode is GL_NONE), this - * field is irrelevant so it's left as GL_NONE (0). - * - * While this is a GLenum, all possible values fit in 16-bits. - */ - uint16_t compare_funcs[BRW_MAX_TEX_UNIT]; - GLbitfield proj_attrib_mask; /**< one bit per fragment program attribute */ - GLuint yuvtex_mask:16; - GLuint yuvtex_swap_mask:16; /* UV swaped */ - uint16_t gl_clamp_mask[3]; - GLushort tex_swizzles[BRW_MAX_TEX_UNIT]; GLushort drawable_height; GLbitfield64 vp_outputs_written; GLuint program_string_id:32; + + struct brw_sampler_prog_key_data tex; }; |