nvc0/ir: don't check the format for surface stores on Kepler
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 21 May 2016 14:28:09 +0000 (16:28 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 21 May 2016 14:50:28 +0000 (16:50 +0200)
commite7d2ef42a5a93789990922b4624096d7ce537cb7
tree5404fc159045788b0c45ea2b8982c80332ee0b4c
parent5e32cc91921209ed27027c57d6bff3d25e189e5a
nvc0/ir: don't check the format for surface stores on Kepler

Initially to make sure the format doesn't mismatch and won't produce
out-of-bounds access, we checked that both formats have exactly the same
number of bytes, but this should not be checked for type stores.

This fixes serious rendering issues in the UE4 demos (tested with
realistic and reflections).

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp