Mesa (master): d3d12: Fix use of incorrect clear color variable
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Dec 1 17:19:59 UTC 2020
Module: Mesa
Branch: master
Commit: 423363803e53ed0f6379f185d2644465f02e2c3c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=423363803e53ed0f6379f185d2644465f02e2c3c
Author: Jesse Natalie <jenatali at microsoft.com>
Date: Sat Nov 28 08:26:43 2020 -0800
d3d12: Fix use of incorrect clear color variable
Fixes: 2ea15cd6 ("d3d12: introduce d3d12 gallium driver")
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7780>
---
src/gallium/drivers/d3d12/d3d12_context.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/d3d12/d3d12_context.cpp b/src/gallium/drivers/d3d12/d3d12_context.cpp
index cb74b05a176..0f1cc3749e7 100644
--- a/src/gallium/drivers/d3d12/d3d12_context.cpp
+++ b/src/gallium/drivers/d3d12/d3d12_context.cpp
@@ -1583,7 +1583,7 @@ d3d12_clear_render_target(struct pipe_context *pctx,
(int)dstx + (int)width,
(int)dsty + (int)height };
ctx->cmdlist->ClearRenderTargetView(surf->desc_handle.cpu_handle,
- color->f, 1, &rect);
+ clear_color, 1, &rect);
d3d12_batch_reference_surface_texture(d3d12_current_batch(ctx), surf);
More information about the mesa-commit
mailing list