diff options
author | Rob Clark <[email protected]> | 2014-04-08 14:14:43 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-04-08 16:06:49 -0400 |
commit | ee839cc6ef92d37ec6a44e6036e7a2c46172a16a (patch) | |
tree | 1beee770dbd351c36b1f398f691d0b4ce1acce19 /src/gallium/drivers/freedreno/freedreno_lowering.c | |
parent | cb4ad1368551b64756c7b6e2007588e34739b188 (diff) |
freedreno/a3xx: deal with optimized tex instructions
Keep track of whether we actually have any sam instructions in the
resulting shader, rather than using TGSI SAMP declarations. If the sam
instruction is optimized out, because the result is not used, we don't
want to emit texture state, etc. In fact emitting sampler state and/or
setting PIXLODENABLE bit when there are no texture fetches seems to
cause lockup.
In theory this should never happen for a "normal" shader, unless the
state tracker is wonky. But it is a very real possibility for binning
pass shaders.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_lowering.c')
0 files changed, 0 insertions, 0 deletions