mesa/src/compiler
Caio Marcelo de Oliveira Filho e64fc93148 nir: Fix clone of nir_variable state slots
When num_state_slots is 0, don't create the array.  This was
triggering the following assert when running vkcube with
NIR_TEST_CLONE=1

    vkcube: ../src/compiler/nir/nir_split_per_member_structs.c:66:
    split_variable: Assertion `var->state_slots == NULL' failed.

Fixes: 9fbd390dd4 "nir: Add support for cloning shaders"
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit 005cc9ae37)
2019-05-21 09:11:22 -07:00
..
glsl glsl: Don't look at sampler uniform storage for internal vars 2019-05-08 16:40:18 -07:00
nir nir: Fix clone of nir_variable state slots 2019-05-21 09:11:22 -07:00
spirv spirv: add missing SPV_EXT_descriptor_indexing capabilities 2019-05-08 16:40:18 -07:00
.gitignore nir/spirv: Remove a duplicate spirv2nir from .gitignore 2016-10-04 07:43:15 -07:00
Android.glsl.gen.mk android,autotools,i965: Fix location of float64_glsl.h 2019-01-30 14:10:12 -08:00
Android.glsl.mk android: glsl: build shader cache sources 2017-02-20 16:30:37 +00:00
Android.mk Android: glsl: add rules to generate ir_expression*.h header files 2016-09-06 15:58:55 +01:00
Android.nir.gen.mk Android: fix a missing nir_intrinsics.h error 2018-07-21 08:50:23 +02:00
Android.nir.mk android: fix libmesa_nir build 2017-07-21 08:47:56 +03:00
blob.c compiler/blob: Add blob_skip_bytes 2018-07-09 23:02:33 -07:00
blob.h compiler/blob: Add blob_skip_bytes 2018-07-09 23:02:33 -07:00
builtin_type_macros.h glsl_types: vec8/vec16 support 2018-03-25 10:42:54 -04:00
glsl_types.cpp compiler/types: Add a contains_64bit helper 2019-02-25 13:29:14 -08:00
glsl_types.h glsl/linker: location aliasing requires types to have the same width 2019-04-12 17:18:40 -07:00
Makefile.am configure: allow building with python3 2018-10-31 19:15:50 +00:00
Makefile.glsl.am automake: Add float64.glsl to dist tarball 2019-01-29 23:24:57 +00:00
Makefile.nir.am nir/algebraic: Add unit tests for bitsize validation 2018-12-05 17:57:40 +01:00
Makefile.sources nir: Add a new pass to lower array dereferences on vectors 2019-03-18 11:36:41 -07:00
Makefile.spirv.am spirv: autotools: add vtn_gather_types_c.py in distribution tarball 2018-04-10 10:37:46 +02:00
meson.build meson: Build with Python 3 2018-08-10 15:15:09 -07:00
nir_types.cpp compiler/types: Add a contains_64bit helper 2019-02-25 13:29:14 -08:00
nir_types.h glsl/linker: location aliasing requires types to have the same width 2019-04-12 17:18:40 -07:00
SConscript spirv: Fix building with SCons 2018-03-30 14:33:03 -06:00
SConscript.glsl mesa: Remove prog_hash_table.c 2016-09-12 10:48:35 +10:00
SConscript.nir nir: mako all the intrinsics 2018-03-27 08:36:37 -04:00
SConscript.spirv spirv: Fix building with SCons 2018-03-30 14:33:03 -06:00
shader_enums.c mesa: add MESA_SHADER_KERNEL 2019-01-21 20:36:41 +01:00
shader_enums.h mesa: add MESA_SHADER_KERNEL 2019-01-21 20:36:41 +01:00
shader_info.h spirv: add missing SPV_EXT_descriptor_indexing capabilities 2019-05-08 16:40:18 -07:00