freedreno/ir3: optimize sam.s2en to sam
authorRob Clark <robdclark@gmail.com>
Tue, 19 Mar 2019 17:30:03 +0000 (13:30 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 21 Mar 2019 13:13:05 +0000 (09:13 -0400)
commitbcd81d238797fdccaae0e94444162f1a1769a89e
tree34b2504fccf70de9cc7e56c2c126c6d84c821083
parent1443694ee5a063936afc5f273d75294ea77c0bc7
freedreno/ir3: optimize sam.s2en to sam

Detect when sampler/texture idx are immediate and switch to non s2en
encoding.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_compiler.c
src/freedreno/ir3/ir3_compiler.h
src/freedreno/ir3/ir3_cp.c