diff options
author | Kenneth Graunke <[email protected]> | 2014-11-30 01:14:17 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-12-04 15:04:35 -0800 |
commit | 8daf3c53c7df806f7302446acb8a58d391f69779 (patch) | |
tree | 753ff5de419c6ab93481f467686b4d433ec294de /src/mesa/drivers/dri/i965/brw_sampler_state.c | |
parent | 4265148ac62366033cfa6ae37e6a8f8c3e1fa864 (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/mesa/drivers/dri/i965/brw_sampler_state.c')
0 files changed, 0 insertions, 0 deletions