aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_state.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2012-09-07 13:24:16 -0700
committerKenneth Graunke <[email protected]>2012-09-26 22:58:30 -0700
commitb5a042a657fed45264406cbd0d67fa6217a410a1 (patch)
tree5875fbfc465a496ef21d86ad98c2487345ba948b /src/mesa/drivers/dri/i965/brw_state.h
parentff947c6d65830b7be6e9fcbfe666fa7dba6341f6 (diff)
i965: Refactor texture swizzle generation into a helper.
It's going to be reused in a second place soon. Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_state.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_state.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h
index 99fa088a90f..48dd4ba76bb 100644
--- a/src/mesa/drivers/dri/i965/brw_state.h
+++ b/src/mesa/drivers/dri/i965/brw_state.h
@@ -202,6 +202,8 @@ GLuint translate_tex_format(gl_format mesa_format,
GLenum depth_mode,
GLenum srgb_decode);
+int brw_get_texture_swizzle(const struct gl_texture_object *t);
+
/* gen7_wm_surface_state.c */
void gen7_set_surface_tiling(struct gen7_surface_state *surf, uint32_t tiling);
void gen7_set_surface_msaa(struct gen7_surface_state *surf,