nvc0: enable vertex color clamping
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 11 Dec 2010 12:41:06 +0000 (13:41 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 11 Dec 2010 15:24:21 +0000 (16:24 +0100)
src/gallium/drivers/nvc0/nvc0_3d.xml.h
src/gallium/drivers/nvc0/nvc0_shader_state.c

index b411e549f2ef3294e6481b2d0d9a858e47c41b93..1346d99940944a28c7f3261f3edb631f5404d4f1 100644 (file)
@@ -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
index 25a9ef722b55c7a8e7d35ac780c7d05b6e2b097a..a16fa6cf5b20b2dbe650ddd51885534845fd17fd 100644 (file)
@@ -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