Home
last modified time | relevance | path

Searched refs:db_depth_control (Results 1 – 3 of 3) sorted by relevance

/external/mesa3d/src/gallium/drivers/r600/
Dr600_state.c802 unsigned db_depth_control, alpha_test_control, alpha_ref; in r600_create_dsa_state() local
817 db_depth_control = S_028800_Z_ENABLE(state->depth.enabled) | in r600_create_dsa_state()
823 db_depth_control |= S_028800_STENCIL_ENABLE(1); in r600_create_dsa_state()
824 db_depth_control |= S_028800_STENCILFUNC(state->stencil[0].func); /* translates straight */ in r600_create_dsa_state()
825 db_depth_control |= S_028800_STENCILFAIL(r600_translate_stencil_op(state->stencil[0].fail_op)); in r600_create_dsa_state()
826 db_depth_control |= S_028800_STENCILZPASS(r600_translate_stencil_op(state->stencil[0].zpass_op)); in r600_create_dsa_state()
827 db_depth_control |= S_028800_STENCILZFAIL(r600_translate_stencil_op(state->stencil[0].zfail_op)); in r600_create_dsa_state()
830 db_depth_control |= S_028800_BACKFACE_ENABLE(1); in r600_create_dsa_state()
831 db_depth_control |= S_028800_STENCILFUNC_BF(state->stencil[1].func); /* translates straight */ in r600_create_dsa_state()
832db_depth_control |= S_028800_STENCILFAIL_BF(r600_translate_stencil_op(state->stencil[1].fail_op)); in r600_create_dsa_state()
[all …]
Devergreen_state.c782 unsigned db_depth_control, alpha_test_control, alpha_ref; in evergreen_create_dsa_state() local
797 db_depth_control = S_028800_Z_ENABLE(state->depth.enabled) | in evergreen_create_dsa_state()
803 db_depth_control |= S_028800_STENCIL_ENABLE(1); in evergreen_create_dsa_state()
804 db_depth_control |= S_028800_STENCILFUNC(state->stencil[0].func); /* translates straight */ in evergreen_create_dsa_state()
805 db_depth_control |= S_028800_STENCILFAIL(r600_translate_stencil_op(state->stencil[0].fail_op)); in evergreen_create_dsa_state()
806 db_depth_control |= S_028800_STENCILZPASS(r600_translate_stencil_op(state->stencil[0].zpass_op)); in evergreen_create_dsa_state()
807 db_depth_control |= S_028800_STENCILZFAIL(r600_translate_stencil_op(state->stencil[0].zfail_op)); in evergreen_create_dsa_state()
810 db_depth_control |= S_028800_BACKFACE_ENABLE(1); in evergreen_create_dsa_state()
811 db_depth_control |= S_028800_STENCILFUNC_BF(state->stencil[1].func); /* translates straight */ in evergreen_create_dsa_state()
812db_depth_control |= S_028800_STENCILFAIL_BF(r600_translate_stencil_op(state->stencil[1].fail_op)); in evergreen_create_dsa_state()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.c563 unsigned db_depth_control, /* alpha_test_control, */ alpha_ref; in si_create_dsa_state() local
576 db_depth_control = S_028800_Z_ENABLE(state->depth.enabled) | in si_create_dsa_state()
582 db_depth_control |= S_028800_STENCIL_ENABLE(1); in si_create_dsa_state()
583 db_depth_control |= S_028800_STENCILFUNC(state->stencil[0].func); in si_create_dsa_state()
589 db_depth_control |= S_028800_BACKFACE_ENABLE(1); in si_create_dsa_state()
590 db_depth_control |= S_028800_STENCILFUNC_BF(state->stencil[1].func); in si_create_dsa_state()
618 si_pm4_set_reg(pm4, R_028800_DB_DEPTH_CONTROL, db_depth_control); in si_create_dsa_state()