diff options
author | Marek Olšák <[email protected]> | 2015-02-01 16:58:08 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-02-04 14:34:13 +0100 |
commit | b142dd2f2474af6479016d5fb5e87b0da015115c (patch) | |
tree | 9b989c89252593ae900236b22eecf8b6cec6ab51 /src/gallium/drivers/radeonsi/si_shader.c | |
parent | afe1e6acdd7f430b0be4f0bd5af3b1c0dbf6e453 (diff) |
radeonsi: move the buffer descriptor to the end of the image descriptor
This will allow supporting NULL textures.
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 52f1fa4acae..2c1dac928a2 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -1538,7 +1538,7 @@ static void tex_fetch_args( /* Bitcast and truncate v8i32 to v16i8. */ LLVMValueRef res = si_shader_ctx->resources[sampler_index]; res = LLVMBuildBitCast(gallivm->builder, res, v2i128, ""); - res = LLVMBuildExtractElement(gallivm->builder, res, bld_base->uint_bld.zero, ""); + res = LLVMBuildExtractElement(gallivm->builder, res, bld_base->uint_bld.one, ""); res = LLVMBuildBitCast(gallivm->builder, res, v16i8, ""); emit_data->dst_type = LLVMVectorType(bld_base->base.elem_type, 4); @@ -2016,7 +2016,7 @@ static void txq_fetch_args( LLVMValueRef size = si_shader_ctx->resources[inst->Src[1].Register.Index]; size = LLVMBuildBitCast(gallivm->builder, size, v8i32, ""); size = LLVMBuildExtractElement(gallivm->builder, size, - lp_build_const_int32(gallivm, 2), ""); + lp_build_const_int32(gallivm, 6), ""); emit_data->args[0] = size; return; } |