Quellcode durchsuchen

spirv: Drop a bogus assert

This was valid back when the only valid types of pointers were uint32
and uvec2.  Now that we're allowing more variety, it could be just about
anything so we'll just drop the assert.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
tags/19.0-branchpoint
Jason Ekstrand vor 6 Jahren
Ursprung
Commit
4602e705e4
1 geänderte Dateien mit 0 neuen und 1 gelöschten Zeilen
  1. 0
    1
      src/compiler/spirv/vtn_variables.c

+ 0
- 1
src/compiler/spirv/vtn_variables.c Datei anzeigen

@@ -1797,7 +1797,6 @@ struct vtn_pointer *
vtn_pointer_from_ssa(struct vtn_builder *b, nir_ssa_def *ssa,
struct vtn_type *ptr_type)
{
vtn_assert(ssa->num_components <= 2 && ssa->bit_size == 32);
vtn_assert(ptr_type->base_type == vtn_base_type_pointer);

struct vtn_type *interface_type = ptr_type->deref;

Laden…
Abbrechen
Speichern