mirror of
https://src.fedoraproject.org/rpms/mesa.git
synced 2024-11-24 09:32:42 +00:00
Backport fix for Octave + llvmpipe
Upstream MR: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30126 Upstream bug report: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11445 Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2294145
This commit is contained in:
parent
e89544b7a4
commit
d42374c33b
2 changed files with 30 additions and 0 deletions
|
@ -0,0 +1,29 @@
|
|||
From d83a0414727d682d9448305c8fe63c014b080e94 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
|
||||
Date: Thu, 11 Jul 2024 12:13:00 -0400
|
||||
Subject: [PATCH] mesa/st: load state params for feedback draws with
|
||||
allow_st_finalize_nir_twice
|
||||
|
||||
this should ensure that the params are always updated
|
||||
|
||||
Fixes: 5eb0136a3c5 ("mesa/st: when creating draw shader variants, use the base nir and skip driver opts")
|
||||
---
|
||||
src/mesa/state_tracker/st_draw_feedback.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/mesa/state_tracker/st_draw_feedback.c b/src/mesa/state_tracker/st_draw_feedback.c
|
||||
index 0a60b5cd2f3..03d2bee2a71 100644
|
||||
--- a/src/mesa/state_tracker/st_draw_feedback.c
|
||||
+++ b/src/mesa/state_tracker/st_draw_feedback.c
|
||||
@@ -181,7 +181,7 @@ st_feedback_draw_vbo(struct gl_context *ctx,
|
||||
* in gl_program_parameter_list because allow_constbuf0_as_real_buffer
|
||||
* is set.
|
||||
*/
|
||||
- if (st->prefer_real_buffer_in_constbuf0 && params->StateFlags)
|
||||
+ if ((st->prefer_real_buffer_in_constbuf0 || st->allow_st_finalize_nir_twice) && params->StateFlags)
|
||||
_mesa_load_state_parameters(st->ctx, params);
|
||||
|
||||
draw_set_constant_buffer_stride(draw, sizeof(float));
|
||||
--
|
||||
2.45.2
|
||||
|
|
@ -79,6 +79,7 @@ Source1: Mesa-MLAA-License-Clarification-Email.txt
|
|||
Patch10: gnome-shell-glthread-disable.patch
|
||||
Patch11: 0001-llvmpipe-Init-eglQueryDmaBufModifiersEXT-num_modifie.patch
|
||||
Patch12: 0001-Revert-ac-radeonsi-remove-has_syncobj-has_fence_to_h.patch
|
||||
Patch13: 0001-mesa-st-load-state-params-for-feedback-draws-with-al.patch
|
||||
|
||||
# s390x only
|
||||
Patch100: fix-egl-on-s390x.patch
|
||||
|
|
Loading…
Reference in a new issue