OSDN Git Service

compiler: Mark clip/cull distance arrays as compact before lowering.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Jan 2019 09:55:45 +0000 (01:55 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 5 Feb 2019 21:58:46 +0000 (13:58 -0800)
commitef99f4c8d176f4e854e12afa1545fa53f651d758
treea63b07df2c0b2ad7d23d68affc4178102edb0609
parent3327c93510b2956ef979778e52848331b597cbf0
compiler: Mark clip/cull distance arrays as compact before lowering.

nir_lower_clip_cull_distance_arrays() marks the combined clip/cull
distance array as compact.  However, when translating in from GLSL
or SPIR-V, we were not marking the original float[] arrays as compact.

We should do so.  That way, we can detect these corner cases properly.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/spirv/vtn_variables.c