summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2010-12-11 13:41:06 +0100
committerChristoph Bumiller <[email protected]>2010-12-11 16:24:21 +0100
commit67d0c3dd792bc2d188f5f53b7e00eb120758d66c (patch)
tree335bc47e694e26415e81ce4133e2206fa28b7db4 /src/gallium/drivers/nvc0
parentdea9d604005e9aaed2bd6807f1913ac668479443 (diff)
nvc0: enable vertex color clamping
Diffstat (limited to 'src/gallium/drivers/nvc0')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_3d.xml.h2
-rw-r--r--src/gallium/drivers/nvc0/nvc0_shader_state.c4
2 files changed, 4 insertions, 2 deletions
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