Mesa (main): dzn: Fixes incompatible pointer type error

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 23 10:06:39 UTC 2022


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

Author: Yonggang Luo <luoyonggang at gmail.com>
Date:   Wed Jun 15 11:00:14 2022 +0800

dzn: Fixes incompatible pointer type error

Signed-off-by: Yonggang Luo <luoyonggang at gmail.com>
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Acked-by: Daniel Stone <daniels at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16084>

---

 src/microsoft/vulkan/dzn_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/microsoft/vulkan/dzn_pipeline.c b/src/microsoft/vulkan/dzn_pipeline.c
index 6eab6abe13f..b3a5997009c 100644
--- a/src/microsoft/vulkan/dzn_pipeline.c
+++ b/src/microsoft/vulkan/dzn_pipeline.c
@@ -1377,7 +1377,7 @@ dzn_graphics_pipeline_get_state(struct dzn_graphics_pipeline *pipeline,
 
       HRESULT hres = ID3D12Device2_CreatePipelineState(device->dev, &stream_desc,
                                                        &IID_ID3D12PipelineState,
-                                                       &variant->state);
+                                                       (void**)(&variant->state));
       assert(!FAILED(hres));
       he = _mesa_hash_table_insert(pipeline->variants, &variant->key, variant);
       assert(he);



More information about the mesa-commit mailing list