mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
glsl_to_tgsi: set shader_info::writes_memory
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4152>
This commit is contained in:
parent
85a723975b
commit
0c6a667d93
1 changed files with 8 additions and 0 deletions
|
|
@ -7344,6 +7344,14 @@ st_link_tgsi(struct gl_context *ctx, struct gl_shader_program *prog)
|
|||
st_set_prog_affected_state_flags(linked_prog);
|
||||
|
||||
if (linked_prog) {
|
||||
/* This is really conservative: */
|
||||
linked_prog->info.writes_memory =
|
||||
linked_prog->info.num_ssbos ||
|
||||
linked_prog->info.num_images ||
|
||||
ctx->Extensions.ARB_bindless_texture ||
|
||||
(linked_prog->sh.LinkedTransformFeedback &&
|
||||
linked_prog->sh.LinkedTransformFeedback->NumVarying);
|
||||
|
||||
if (!ctx->Driver.ProgramStringNotify(ctx,
|
||||
_mesa_shader_stage_to_program(i),
|
||||
linked_prog)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue