Re: [Mesa-dev] [PATCH] st/mesa: Only enable depth writes if the function isn't EQUAL.

2018-07-05 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, Jul 5, 2018 at 6:00 AM, Kenneth Graunke wrote: > If the depth function is EQUAL, then we'll only write the depth value > when it already matches what's in the buffer, which is pointless. > Skipping these writes can save bandwidth. > > The state tracker can

[Mesa-dev] [PATCH] st/mesa: Only enable depth writes if the function isn't EQUAL.

2018-07-05 Thread Kenneth Graunke
If the depth function is EQUAL, then we'll only write the depth value when it already matches what's in the buffer, which is pointless. Skipping these writes can save bandwidth. The state tracker can easily take care of this, so all drivers benefit. --- src/mesa/state_tracker/st_atom_depth.c | 3