/[packages]/cauldron/mesa/current/SOURCES/0023-radv-fix-binding-transform-feedback-buffers.patch
ViewVC logotype

Contents of /cauldron/mesa/current/SOURCES/0023-radv-fix-binding-transform-feedback-buffers.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1379265 - (show annotations) (download)
Wed Mar 20 17:08:42 2019 UTC (2 months ago) by tmb
File size: 1245 byte(s)
more fixes from staging/19.0 branch
1 From 62b2aea3ee46027c7c0e9fe0f1a295927abe5b42 Mon Sep 17 00:00:00 2001
2 From: Samuel Pitoiset <samuel.pitoiset@gmail.com>
3 Date: Tue, 5 Mar 2019 18:09:12 +0100
4 Subject: [PATCH 23/24] radv: fix binding transform feedback buffers
5
6 The mask should be accumulated if two calls are used for
7 binding two buffers at different indexes. Otherwise, the
8 driver only accounts for the last one.
9
10 Noticed while glancing at this code.
11
12 Cc: 18.3 19.0 <mesa-stable@lists.freedesktop.org>
13 Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
14 Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
15 (cherry picked from commit 4fa61273a8c8809a9ca0a1473b5e361aa5715ae0)
16 ---
17 src/amd/vulkan/radv_cmd_buffer.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
21 index e800bbd061a..13f7c6a01cd 100644
22 --- a/src/amd/vulkan/radv_cmd_buffer.c
23 +++ b/src/amd/vulkan/radv_cmd_buffer.c
24 @@ -4905,7 +4905,7 @@ void radv_CmdBindTransformFeedbackBuffersEXT(
25 enabled_mask |= 1 << idx;
26 }
27
28 - cmd_buffer->state.streamout.enabled_mask = enabled_mask;
29 + cmd_buffer->state.streamout.enabled_mask |= enabled_mask;
30
31 cmd_buffer->state.dirty |= RADV_CMD_DIRTY_STREAMOUT_BUFFER;
32 }
33 --
34 2.21.0
35

  ViewVC Help
Powered by ViewVC 1.1.26