From: Christoph Bumiller Date: Sat, 11 Dec 2010 12:41:06 +0000 (+0100) Subject: nvc0: enable vertex color clamping X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67d0c3dd792bc2d188f5f53b7e00eb120758d66c;p=mesa.git nvc0: enable vertex color clamping --- diff --git a/src/gallium/drivers/nvc0/nvc0_3d.xml.h b/src/gallium/drivers/nvc0/nvc0_3d.xml.h index b411e549f2e..1346d999409 100644 --- a/src/gallium/drivers/nvc0/nvc0_3d.xml.h +++ b/src/gallium/drivers/nvc0/nvc0_3d.xml.h @@ -1063,6 +1063,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define NVC0_3D_CB_BIND_INDEX__MASK 0x000000f0 #define NVC0_3D_CB_BIND_INDEX__SHIFT 4 +#define NVC0_3D_VERT_COLOR_CLAMP_EN 0x00002600 + #define NVC0_3D_TFB_VARYING_LOCS(i0) (0x00002800 + 0x4*(i0)) #define NVC0_3D_TFB_VARYING_LOCS__ESIZE 0x00000004 #define NVC0_3D_TFB_VARYING_LOCS__LEN 0x00000080 diff --git a/src/gallium/drivers/nvc0/nvc0_shader_state.c b/src/gallium/drivers/nvc0/nvc0_shader_state.c index 25a9ef722b5..a16fa6cf5b2 100644 --- a/src/gallium/drivers/nvc0/nvc0_shader_state.c +++ b/src/gallium/drivers/nvc0/nvc0_shader_state.c @@ -78,8 +78,8 @@ nvc0_vertprog_validate(struct nvc0_context *nvc0) // BEGIN_RING(chan, RING_3D_(0x163c), 1); // OUT_RING (chan, 0); - // BEGIN_RING(chan, RING_3D_(0x2600), 1); - // OUT_RING (chan, 1); + BEGIN_RING(chan, RING_3D(VERT_COLOR_CLAMP_EN), 1); + OUT_RING (chan, 1); } void