mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
tu: Handle the new sync2 flags
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8277
Signed-off-by: Valentine Burley <valentine.burley@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29658>
(cherry picked from commit 5e9cb32c10)
This commit is contained in:
parent
5d4b886820
commit
b2985b208b
2 changed files with 8 additions and 3 deletions
|
|
@ -1024,7 +1024,7 @@
|
|||
"description": "tu: Handle the new sync2 flags",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@
|
|||
|
||||
#include "tu_cmd_buffer.h"
|
||||
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_render_pass.h"
|
||||
#include "vk_util.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
|
||||
#include "tu_clear_blit.h"
|
||||
#include "tu_cs.h"
|
||||
|
|
@ -3449,6 +3449,7 @@ gfx_write_access(VkAccessFlags2 flags, VkPipelineStageFlags2 stages,
|
|||
return filter_write_access(flags, stages, tu_flags,
|
||||
tu_stages | VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT);
|
||||
}
|
||||
|
||||
static enum tu_cmd_access_mask
|
||||
vk2tu_access(VkAccessFlags2 flags, VkPipelineStageFlags2 stages, bool image_only, bool gmem)
|
||||
{
|
||||
|
|
@ -3490,7 +3491,10 @@ vk2tu_access(VkAccessFlags2 flags, VkPipelineStageFlags2 stages, bool image_only
|
|||
VK_ACCESS_2_VERTEX_ATTRIBUTE_READ_BIT |
|
||||
VK_ACCESS_2_UNIFORM_READ_BIT |
|
||||
VK_ACCESS_2_INPUT_ATTACHMENT_READ_BIT |
|
||||
VK_ACCESS_2_SHADER_READ_BIT,
|
||||
VK_ACCESS_2_SHADER_READ_BIT |
|
||||
VK_ACCESS_2_SHADER_SAMPLED_READ_BIT |
|
||||
VK_ACCESS_2_SHADER_STORAGE_READ_BIT |
|
||||
VK_ACCESS_2_SHADER_BINDING_TABLE_READ_BIT_KHR,
|
||||
VK_PIPELINE_STAGE_2_INDEX_INPUT_BIT |
|
||||
VK_PIPELINE_STAGE_2_VERTEX_INPUT_BIT |
|
||||
VK_PIPELINE_STAGE_2_VERTEX_ATTRIBUTE_INPUT_BIT |
|
||||
|
|
@ -3511,6 +3515,7 @@ vk2tu_access(VkAccessFlags2 flags, VkPipelineStageFlags2 stages, bool image_only
|
|||
|
||||
if (gfx_write_access(flags, stages,
|
||||
VK_ACCESS_2_SHADER_WRITE_BIT |
|
||||
VK_ACCESS_2_SHADER_STORAGE_WRITE_BIT |
|
||||
VK_ACCESS_2_TRANSFORM_FEEDBACK_WRITE_BIT_EXT,
|
||||
VK_PIPELINE_STAGE_2_TRANSFORM_FEEDBACK_BIT_EXT |
|
||||
SHADER_STAGES))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue