mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 05:28:05 +02:00
panvk: track whether we are in a vk_meta command
This is needed to handle the provoking vertex mode correctly. vk_meta
doesn't care which provoking vertex mode is used, but there is no way to
express this directly in the vulkan api.
Signed-off-by: Olivia Lee <olivia.lee@collabora.com>
Tested-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Ryan Mckeever <ryan.mckeever@collabora.com>
(cherry picked from commit 32177b99d5)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35194>
This commit is contained in:
parent
49bdf4669b
commit
4f2353e598
3 changed files with 7 additions and 1 deletions
|
|
@ -4424,7 +4424,7 @@
|
|||
"description": "panvk: track whether we are in a vk_meta command",
|
||||
"nominated": false,
|
||||
"nomination_type": 0,
|
||||
"resolution": 4,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -165,6 +165,8 @@ struct panvk_cmd_graphics_state {
|
|||
|
||||
struct panvk_rendering_state render;
|
||||
|
||||
bool vk_meta;
|
||||
|
||||
#if PAN_ARCH <= 7
|
||||
uint64_t vpd;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -106,6 +106,8 @@ panvk_per_arch(cmd_meta_gfx_start)(
|
|||
cmdbuf->state.gfx.occlusion_query.ptr = 0;
|
||||
cmdbuf->state.gfx.occlusion_query.mode = MALI_OCCLUSION_MODE_DISABLED;
|
||||
gfx_state_set_dirty(cmdbuf, OQ);
|
||||
|
||||
cmdbuf->state.gfx.vk_meta = true;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -156,6 +158,8 @@ panvk_per_arch(cmd_meta_gfx_end)(
|
|||
gfx_state_set_dirty(cmdbuf, OQ);
|
||||
gfx_state_set_dirty(cmdbuf, DESC_STATE);
|
||||
gfx_state_set_dirty(cmdbuf, RENDER_STATE);
|
||||
|
||||
cmdbuf->state.gfx.vk_meta = false;
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue