summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2018-06-22 21:47:43 +0100
committerKarol Herbst <[email protected]>2018-06-28 18:22:06 +0200
commitc92eb71a65be5e4f71ace2f9d47549645ab49dad (patch)
treeee198d97e39f6e97768d2b60a546233a03a2b8f6 /src/gallium
parent6bb0f87c6003e1d80aa79f6a591620aecc7b031d (diff)
nvc0: remove magic values in nve4_set_tex_handles()
With this commit, things no longer break if NVC0_CB_AUX_TEX_INFO is changed to anything other than 0x20. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Signed-off-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_tex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
index 0471fffe835..e7cd60169e9 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
@@ -755,7 +755,7 @@ nve4_set_tex_handles(struct nvc0_context *nvc0)
dirty &= ~(1 << i);
BEGIN_NVC0(push, NVC0_3D(CB_POS), 2);
- PUSH_DATA (push, (8 + i) * 4);
+ PUSH_DATA (push, NVC0_CB_AUX_TEX_INFO(i));
PUSH_DATA (push, nvc0->tex_handles[s][i]);
} while (dirty);