aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_context.h
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2011-10-21 17:20:32 -0700
committerPaul Berry <[email protected]>2011-10-27 15:31:53 -0700
commite04bdeae82797dbdcf6f544a997a4626fdfd4aee (patch)
treee84f3f73a94b9c99bfc6fc4e60cf8de9f0fae285 /src/mesa/drivers/dri/i965/brw_context.h
parent102bdd26e1acf1ebf75ef85b62df2400239fd480 (diff)
i965/gen6+: Parameterize barycentric interpolation modes.
This patch modifies the fragment shader back-end so that instead of using a single delta_x/delta_y register pair to store barycentric coordinates, it uses an array of such register pairs, one for each possible intepolation mode. When setting up the WM, we intstruct it to only provide the barycentric coordinates that are actually needed by the fragment shader--that is computed by brw_compute_barycentric_interp_modes(). Currently this function returns just BRW_WM_PERSPECTIVE_PIXEL_BARYCENTRIC, because this is the only interpolation mode we support. However, that will change in a later patch. Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index ff25b093b47..4ae8580ac57 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -976,6 +976,11 @@ void brw_compute_vue_map(struct brw_vue_map *vue_map,
GLbitfield64 outputs_written);
gl_clip_plane *brw_select_clip_planes(struct gl_context *ctx);
+/* brw_wm.c */
+unsigned
+brw_compute_barycentric_interp_modes(void);
+
+
/*======================================================================
* Inline conversion functions. These are better-typed than the