mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 04:40:11 +01:00
freedreno/a5xx: fix alpha test
GRAS_SU_DEPTH_PLANE_CNTL doesn't in fact seem to be anything to do with alpha test. This fixes xonotic and (other than some iommu faults) gets gnome-shell working. Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
2b305725e2
commit
3ec4d1f809
3 changed files with 1 additions and 5 deletions
|
|
@ -298,8 +298,7 @@ fd5_emit_state(struct fd_context *ctx, struct fd_ringbuffer *ring,
|
|||
OUT_RING(ring, COND(fragz, A5XX_RB_DEPTH_PLANE_CNTL_FRAG_WRITES_Z));
|
||||
|
||||
OUT_PKT4(ring, REG_A5XX_GRAS_SU_DEPTH_PLANE_CNTL, 1);
|
||||
OUT_RING(ring, zsa->gras_su_depth_plane_cntl |
|
||||
COND(fragz, A5XX_GRAS_SU_DEPTH_PLANE_CNTL_ALPHA_TEST_ENABLE));
|
||||
OUT_RING(ring, COND(fragz, A5XX_GRAS_SU_DEPTH_PLANE_CNTL_ALPHA_TEST_ENABLE));
|
||||
}
|
||||
|
||||
if (dirty & FD_DIRTY_RASTERIZER) {
|
||||
|
|
|
|||
|
|
@ -87,8 +87,6 @@ fd5_zsa_state_create(struct pipe_context *pctx,
|
|||
|
||||
if (cso->alpha.enabled) {
|
||||
uint32_t ref = cso->alpha.ref_value * 255.0;
|
||||
so->gras_su_depth_plane_cntl =
|
||||
A5XX_GRAS_SU_DEPTH_PLANE_CNTL_ALPHA_TEST_ENABLE;
|
||||
so->rb_alpha_control =
|
||||
A5XX_RB_ALPHA_CONTROL_ALPHA_TEST |
|
||||
A5XX_RB_ALPHA_CONTROL_ALPHA_REF(ref) |
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@
|
|||
struct fd5_zsa_stateobj {
|
||||
struct pipe_depth_stencil_alpha_state base;
|
||||
|
||||
uint32_t gras_su_depth_plane_cntl;
|
||||
uint32_t rb_alpha_control;
|
||||
uint32_t rb_depth_cntl;
|
||||
uint32_t rb_stencil_control;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue