radv: make use of the output usage mask in GS copy shader
This is just for consistency because LLVM can detect and remove unused loads. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
@@ -3609,6 +3609,9 @@ ac_gs_copy_shader_emit(struct radv_shader_context *ctx)
|
|||||||
for (unsigned j = 0; j < length; j++) {
|
for (unsigned j = 0; j < length; j++) {
|
||||||
LLVMValueRef value, soffset;
|
LLVMValueRef value, soffset;
|
||||||
|
|
||||||
|
if (!(output_usage_mask & (1 << j)))
|
||||||
|
continue;
|
||||||
|
|
||||||
soffset = LLVMConstInt(ctx->ac.i32,
|
soffset = LLVMConstInt(ctx->ac.i32,
|
||||||
(slot * 4 + j) *
|
(slot * 4 + j) *
|
||||||
ctx->gs_max_out_vertices * 16 * 4, false);
|
ctx->gs_max_out_vertices * 16 * 4, false);
|
||||||
|
Reference in New Issue
Block a user