mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
radeonsi: don't treat skipped GS copy shader compilation as successful
We don't expect the GS copy shader to ever use the scratch buffer, so we just don't compile the shader, but the problem is we set ok to true anyway. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15965>
This commit is contained in:
parent
80bc6f9e28
commit
9d3357141e
1 changed files with 1 additions and 2 deletions
|
|
@ -537,10 +537,9 @@ struct si_shader *si_generate_gs_copy_shader(struct si_screen *sscreen,
|
|||
fprintf(stderr, "GS Copy Shader:\n");
|
||||
si_shader_dump(sscreen, ctx.shader, debug, stderr, true);
|
||||
|
||||
assert(!ctx.shader->config.scratch_bytes_per_wave);
|
||||
if (!ctx.shader->config.scratch_bytes_per_wave)
|
||||
ok = si_shader_binary_upload(sscreen, ctx.shader, 0);
|
||||
else
|
||||
ok = true;
|
||||
}
|
||||
|
||||
si_llvm_dispose(&ctx);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue