aboutsummaryrefslogtreecommitdiffstats
path: root/docs/opengles.html
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-06-17 11:31:51 +0200
committerAlyssa Rosenzweig <[email protected]>2019-06-18 06:36:07 -0700
commit0e489fd36061352e79cb4fb90f71f1b901211452 (patch)
treed7799e98c2004525a52b63ea6054a6c25913d4b1 /docs/opengles.html
parent352b1d9c311b1468857cce30191994586520ef46 (diff)
nir/lower_tex: Update ->sampler_dim value before calling get_texture_size()
get_texture_size() will create a txs instruction with ->sampler_dim set to the original tex->sampler_dim. The condition to call lower_rect() only checks the value of ->sampler_dim and whether lower_rect is requested or not. This leads to an infinite loop when calling nir_lower_tex() with the same options until it returns false. In order to avoid that, let's move the tex->sampler_dim patching before get_texture_size() is called. This way the txs instruction will have ->sampler_dim set to GLSL_SAMPLER_DIM_2D and nir_lower_tex() won't try to lower it on the subsequent passes. Changes in v2: * Add Jason R-b * Add a comment explaining why we patch ->sampler_dim at the beginning of the lower_rect() func Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'docs/opengles.html')
0 files changed, 0 insertions, 0 deletions