瀏覽代碼

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 6 年之前
父節點
當前提交
4602e705e4
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0
    1
      src/compiler/spirv/vtn_variables.c

+ 0
- 1
src/compiler/spirv/vtn_variables.c 查看文件

@@ -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;

Loading…
取消
儲存