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:
committed by
Marge Bot
parent
306b5f3724
commit
5a2acfeffb
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user