summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nv30
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-10-02 16:36:51 +0200
committerMarek Olšák <[email protected]>2014-10-04 15:36:39 +0200
commit0c4bc1e29223ffec4617999c0c03d722bdcc170a (patch)
treeecae2a4b7708df339d2189a156357a9d4aa2452c /src/gallium/drivers/nouveau/nv30
parent1f6c0b55df9f3553b18062ad2c7e2dc021d4c731 (diff)
tgsi: change tgsi_shader_info::properties to a one-dimensional array
Reviewed-by: Roland Scheidegger <[email protected]> v2: fix svga too
Diffstat (limited to 'src/gallium/drivers/nouveau/nv30')
-rw-r--r--src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c b/src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c
index 774b14b0a47..81543bae986 100644
--- a/src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c
+++ b/src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c
@@ -1138,11 +1138,11 @@ _nvfx_fragprog_translate(uint16_t oclass, struct nv30_fragprog *fp)
fpc->num_regs = 2;
memset(fp->texcoord, 0xff, sizeof(fp->texcoord));
- if (fp->info.properties[TGSI_PROPERTY_FS_COORD_ORIGIN][0])
+ if (fp->info.properties[TGSI_PROPERTY_FS_COORD_ORIGIN])
fp->coord_conventions |= NV30_3D_COORD_CONVENTIONS_ORIGIN_INVERTED;
- if (fp->info.properties[TGSI_PROPERTY_FS_COORD_PIXEL_CENTER][0])
+ if (fp->info.properties[TGSI_PROPERTY_FS_COORD_PIXEL_CENTER])
fp->coord_conventions |= NV30_3D_COORD_CONVENTIONS_CENTER_INTEGER;
- if (fp->info.properties[TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS][0])
+ if (fp->info.properties[TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS])
fp->rt_enable |= NV30_3D_RT_ENABLE_MRT;
if (!nvfx_fragprog_prepare(fpc))