diff options
author | Boris Brezillon <[email protected]> | 2019-06-17 11:43:13 +0200 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-06-18 06:36:07 -0700 |
commit | 296c5fd25db15a535920fc43deea2b279e11c5d6 (patch) | |
tree | b480fda93f31856e74636bfa4cb4d3c7b9659024 /src/hgl | |
parent | 0e489fd36061352e79cb4fb90f71f1b901211452 (diff) |
nir/lower_tex: Add a way to lower TXS(non-0-LOD) instructions
The V3D driver has an open-coded solution for this, and we need the
same thing for Panfrost, so let's add a generic way to lower TXS(LOD)
into max(TXS(0) >> LOD, 1).
Changes in v2:
* Use == 0 instead of !
* Rework the minification logic as suggested by Jason
* Assign cursor pos at the beginning of the function
* Patch the LOD just after retrieving the old value
Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/hgl')
0 files changed, 0 insertions, 0 deletions