mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 23:50:11 +01:00
zink: always use vk mem model for shaders if available
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15959>
This commit is contained in:
parent
306b5f3724
commit
5a2acfeffb
1 changed files with 2 additions and 1 deletions
|
|
@ -3994,8 +3994,9 @@ nir_to_spirv(struct nir_shader *s, const struct zink_shader_info *sinfo, uint32_
|
|||
spirv_builder_emit_mem_model(&ctx.builder, model,
|
||||
SpvMemoryModelGLSL450);
|
||||
} else {
|
||||
if (ctx.stage == MESA_SHADER_TESS_CTRL && ctx.sinfo->have_vulkan_memory_model) {
|
||||
if (ctx.sinfo->have_vulkan_memory_model) {
|
||||
spirv_builder_emit_cap(&ctx.builder, SpvCapabilityVulkanMemoryModel);
|
||||
spirv_builder_emit_cap(&ctx.builder, SpvCapabilityVulkanMemoryModelDeviceScope);
|
||||
spirv_builder_emit_mem_model(&ctx.builder, SpvAddressingModelLogical,
|
||||
SpvMemoryModelVulkan);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue