OSDN Git Service

nir/lower_tex: Modify txd instructions instead of replacing them
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 11 Oct 2018 19:27:26 +0000 (14:27 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 12 Dec 2018 03:26:23 +0000 (21:26 -0600)
commit4a691cfa7e79c4b843fbbd8a7823636e10951ca1
treea05ab8f8e3eb6dac4aed5054ebeea25bbd5c72bb
parent5a968ae473a11bd074281c5d1c4825a295e1dd13
nir/lower_tex: Modify txd instructions instead of replacing them

I don't know if one is better than the other or not but this approach
has the advantage that we never forget to copy information over and
we're not hard-coding quite as many assumptions.  It's also a lot
simpler and much less code.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir_lower_tex.c