mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 10:30:13 +01:00
spirv: Only require bare types to match when copying variables
OpCopyMemory doesn't care about mismatched decorations, only about matching types. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3418 Fixes:bf1a1eed88Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6344> (cherry picked from commitb6ebf6eba9)
This commit is contained in:
parent
790af092d8
commit
1b470ee09f
2 changed files with 3 additions and 2 deletions
|
|
@ -985,7 +985,7 @@
|
|||
"description": "spirv: Only require bare types to match when copying variables",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "bf1a1eed882980a1cd08482386e3a001ce64a5a4"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1182,7 +1182,8 @@ static void
|
|||
_vtn_variable_copy(struct vtn_builder *b, struct vtn_pointer *dest,
|
||||
struct vtn_pointer *src)
|
||||
{
|
||||
vtn_assert(src->type->type == dest->type->type);
|
||||
vtn_assert(glsl_get_bare_type(src->type->type) ==
|
||||
glsl_get_bare_type(dest->type->type));
|
||||
enum glsl_base_type base_type = glsl_get_base_type(src->type->type);
|
||||
switch (base_type) {
|
||||
case GLSL_TYPE_UINT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue