mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
nvc0: enable vertex color clamping
This commit is contained in:
parent
dea9d60400
commit
67d0c3dd79
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue