panfrost: Constant stencil value tracking
If stencil is constant across the resource, then it can be treated as if it was cleared. Improves performance in applications which create a stencil buffer but do not use it. Originally the same was done for depth to help some 2D applications, but that gave mixed results so the patch was dropped. v2: Don't do anything if a fragment job wouldn't be needed otherwise. v3: Set stencil_value when a batch is cleared (Alyssa) v4: Handle clears when the stencil is already known (Alyssa) v5: Make sure shared resources are not used (Alyssa) Part-of: <mesa/mesa!16646>
- src/gallium/drivers/panfrost/pan_job.c 29 additions, 1 deletionsrc/gallium/drivers/panfrost/pan_job.c
- src/gallium/drivers/panfrost/pan_resource.c 8 additions, 0 deletionssrc/gallium/drivers/panfrost/pan_resource.c
- src/gallium/drivers/panfrost/pan_resource.h 6 additions, 0 deletionssrc/gallium/drivers/panfrost/pan_resource.h