OSDN Git Service

nir: Zero out texture instructions when creating them.
authorEric Anholt <eric@anholt.net>
Wed, 12 Aug 2015 00:10:35 +0000 (17:10 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 14 Aug 2015 18:39:18 +0000 (11:39 -0700)
commitfb2425a641dd7f891964e6f51b10cce63dff7d2c
tree50c0a4909e2e6da448b03aaf3c0a86552359af50
parentbf3c50fba221f216e38d3f60f89161ced4c684c0
nir: Zero out texture instructions when creating them.

There are so many flags in textures, that the CSE pass would have a hard
time referencing the correct set when figuring out if two texture ops are
the same.  By zeroing, we can avoid that fragility.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir.c