[Mesa-dev] [PATCH 01/16] glsl/nir: int constants as float for native_integers=false

Jonathan marek jonathan at marek.ca
Wed Dec 19 18:34:36 UTC 2018


I haven't encountered such dereference issues, but lowering integers 
later is a good idea (as with bools which are now lowered later).

On 12/19/2018 01:22 PM, Eric Anholt wrote:
> Jonathan Marek <jonathan at marek.ca> writes:
> 
>> Note: the backend must take care that uniform index is now a float
> 
> This makes me think that lowering ints to float should be done near the
> end of the compile (followed by maybe an algebraic and a dce).  As is, I
> think nir_lower_io() is going to do bad things to dereferences of i/o
> arrays.
> 
> That said, it looks like this will be fixing way more than it regresses,
> so I would go along with it.
> 


More information about the mesa-dev mailing list