Module: Mesa
Branch: main
Commit: ba5c4da5da78535e21259258002afe2ebd99ef36
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ba5c4da5da78535e21259258002afe2ebd99ef36

Author: Jesse Natalie <jenat...@microsoft.com>
Date:   Tue Nov  7 10:15:57 2023 -0800

d3d12: Use format casting for shader images

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26104>

---

 src/gallium/drivers/d3d12/d3d12_context.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/d3d12/d3d12_context.cpp 
b/src/gallium/drivers/d3d12/d3d12_context.cpp
index 88fd1d70ccb..3f351e7629c 100644
--- a/src/gallium/drivers/d3d12/d3d12_context.cpp
+++ b/src/gallium/drivers/d3d12/d3d12_context.cpp
@@ -1798,6 +1798,7 @@ d3d12_set_shader_images(struct pipe_context *pctx,
          d3d12_increment_image_bind_count(ctx, shader, 
d3d12_resource(images[i].resource));
 
          if (images[i].resource->target != PIPE_BUFFER &&
+             !d3d12_screen(pctx->screen)->opts12.RelaxedFormatCastingSupported 
&&
              !is_valid_uav_cast(images[i].resource->format, images[i].format) 
&&
              d3d12_get_typeless_format(images[i].format) !=
              d3d12_get_typeless_format(images[i].resource->format)) {

Reply via email to