Mesa (nv50-compiler): nv50: fix check for sprite/point coord enable
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Mon Aug 23 12:26:17 UTC 2010
Module: Mesa
Branch: nv50-compiler
Commit: bae181f78d6ff5e37ef3c022563b2077c0247c2b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bae181f78d6ff5e37ef3c022563b2077c0247c2b
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Mon Aug 23 14:25:13 2010 +0200
nv50: fix check for sprite/point coord enable
---
src/gallium/drivers/nv50/nv50_shader_state.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/nv50/nv50_shader_state.c b/src/gallium/drivers/nv50/nv50_shader_state.c
index a244753..f187a07 100644
--- a/src/gallium/drivers/nv50/nv50_shader_state.c
+++ b/src/gallium/drivers/nv50/nv50_shader_state.c
@@ -384,7 +384,7 @@ nv50_pntc_replace(struct nv50_context *nv50, uint32_t pntc[8], unsigned m)
break;
if (j < vp->out_nr) {
- ubyte en = nv50->rasterizer->pipe.sprite_coord_enable;
+ uint32_t en = nv50->rasterizer->pipe.sprite_coord_enable;
if (!(en & (1 << vp->out[j].si))) {
m += n;
@@ -547,7 +547,7 @@ nv50_fp_linkage_validate(struct nv50_context *nv50)
so_method(so, tesla, NV50TCL_NOPERSPECTIVE_BITMAP(0), 4);
so_datap (so, lin, 4);
- if (nv50->rasterizer->pipe.sprite_coord_enable) { /* XXX: gl_PointCoord */
+ if (nv50->rasterizer->pipe.point_quad_rasterization) {
so_method(so, tesla, NV50TCL_POINT_SPRITE_CTRL, 1);
so_data (so,
nv50_pntc_replace(nv50, pntc, (interp >> 8) & 0xff));
More information about the mesa-commit
mailing list