aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/zink/zink_program.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c
index 92a75489cf5..95b47a69d93 100644
--- a/src/gallium/drivers/zink/zink_program.c
+++ b/src/gallium/drivers/zink/zink_program.c
@@ -210,9 +210,8 @@ reference_render_pass(struct zink_screen *screen,
struct set_entry *entry = _mesa_set_search(prog->render_passes,
render_pass);
if (!entry) {
- struct zink_render_pass *tmp = NULL;
entry = _mesa_set_add(prog->render_passes, render_pass);
- zink_render_pass_reference(screen, &tmp, render_pass);
+ pipe_reference(NULL, &render_pass->reference);
}
}