summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-11-30 01:14:17 -0800
committerKenneth Graunke <[email protected]>2014-12-04 15:04:35 -0800
commit8daf3c53c7df806f7302446acb8a58d391f69779 (patch)
tree753ff5de419c6ab93481f467686b4d433ec294de /src/mapi
parent4265148ac62366033cfa6ae37e6a8f8c3e1fa864 (diff)
i965: Move PSCDEPTH calculations from draw time to compile time.
The "Pixel Shader Computed Depth Mode" value is entirely based on the shader program, so we can easily do it at compile time. This avoids the if+switch on every 3DSTATE_WM (Gen7)/3DSTATE_PS_EXTRA (Gen8+) upload, and shares a bit more code. This also simplifies the PMA stall code, making it match the formula more closely, and drops a BRW_NEW_FRAGMENT_PROGRAM dependency. (Note that the previous comment was wrong - the code and the documentation have != PSCDEPTH_OFF, not ==.) Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mapi')
0 files changed, 0 insertions, 0 deletions