mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
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:
parent
f398595dca
commit
fbc064a5b4
1 changed files with 3 additions and 0 deletions
|
|
@ -3609,6 +3609,9 @@ ac_gs_copy_shader_emit(struct radv_shader_context *ctx)
|
|||
for (unsigned j = 0; j < length; j++) {
|
||||
LLVMValueRef value, soffset;
|
||||
|
||||
if (!(output_usage_mask & (1 << j)))
|
||||
continue;
|
||||
|
||||
soffset = LLVMConstInt(ctx->ac.i32,
|
||||
(slot * 4 + j) *
|
||||
ctx->gs_max_out_vertices * 16 * 4, false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue