[Mesa-dev] [PATCH 2/2] radeonsi: remove constant index limitation
Christian König
deathsimple at vodafone.de
Mon Feb 4 08:56:33 PST 2013
From: Christian König <christian.koenig at amd.com>
Seems to work fine now.
Signed-off-by: Christian König <christian.koenig at amd.com>
---
src/gallium/drivers/radeonsi/radeonsi_shader.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c
index 06b5a19..aacf096 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c
@@ -455,12 +455,6 @@ static LLVMValueRef fetch_constant(
* CONST[0].x will have an offset of 0 and CONST[1].x will have an
* offset of 4. */
idx = (reg->Register.Index * 4) + swizzle;
-
- /* index loads above 255 are currently not supported */
- if (idx > 255) {
- assert(0);
- idx = 0;
- }
offset = lp_build_const_int32(base->gallivm, idx);
load = build_indexed_load(base->gallivm, const_ptr, offset);
--
1.7.9.5
More information about the mesa-dev
mailing list