summaryrefslogtreecommitdiffstats
path: root/src/mapi/mapi_glapi.c
diff options
context:
space:
mode:
authorVadim Girlin <[email protected]>2013-04-27 12:03:39 +0400
committerVadim Girlin <[email protected]>2013-04-30 21:50:48 +0400
commit3e476c311f9e131d255a9946d0cf7acc74a07dad (patch)
tree482cfda548ef8171fb7658c66520805af82ffb87 /src/mapi/mapi_glapi.c
parent6d6c8c88a38ccdd453d2ad184e58b3eb35230a5a (diff)
r600g/sb: use simple heuristic to limit register pressure
It's not a complete register pressure tracking, yet it helps to prevent register allocation problems in some cases where they were observed. The problems are uncovered by false dependencies between fetch instructions introduced by some recent changes in TGSI and/or default backend. Sometimes we have code like this: ... SAMPLE R5.xyzw, R5.xyzw ... store R5.xyzw somewhere MOV R5.x, <next x coord> MOV R5.y, <next y coord> SAMPLE R5.xyzw, R5.xyzw ... <may be repeated a lot of times> With 2D resources, z and w in SAMPLE src reg aren't used and can be simply masked, but shader backend doesn't have this information, so it's considered as data dependency by optimization algorithms.
Diffstat (limited to 'src/mapi/mapi_glapi.c')
0 files changed, 0 insertions, 0 deletions