Mesa (master): zink: Use store_dest_raw instead of storing an uint

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 2 21:59:29 UTC 2020


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

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Thu May 28 14:41:17 2020 +0200

zink: Use store_dest_raw instead of storing an uint

I cleaned up the other similar call-sites, but somehow missed this one.
There's nothing different with this, so let's also fix this.

Fixes: 16339646f03 ("zink/spirv: rename functions a bit")
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5250>

---

 src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
index 01661409db1..eecbca3e5dc 100644
--- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
+++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
@@ -1718,8 +1718,7 @@ emit_deref_var(struct ntv_context *ctx, nir_deref_instr *deref)
    struct hash_entry *he = _mesa_hash_table_search(ctx->vars, deref->var);
    assert(he);
    SpvId result = (SpvId)(intptr_t)he->data;
-   /* uint is a bit of a lie here, it's really just an opaque type */
-   store_dest(ctx, &deref->dest, result, nir_type_uint);
+   store_dest_raw(ctx, &deref->dest, result);
 }
 
 static void



More information about the mesa-commit mailing list