mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
nvfx: so->RING_3D: sr
This commit is contained in:
parent
4b3b54d746
commit
f768528af5
1 changed files with 6 additions and 9 deletions
|
|
@ -18,16 +18,14 @@ struct nvfx_state_entry nvfx_state_zsa = {
|
|||
static boolean
|
||||
nvfx_state_sr_validate(struct nvfx_context *nvfx)
|
||||
{
|
||||
struct nouveau_stateobj *so = so_new(2, 2, 0);
|
||||
struct nouveau_channel* chan = nvfx->screen->base.channel;
|
||||
struct pipe_stencil_ref *sr = &nvfx->stencil_ref;
|
||||
|
||||
so_method(so, nvfx->screen->eng3d, NV34TCL_STENCIL_FRONT_FUNC_REF, 1);
|
||||
so_data (so, sr->ref_value[0]);
|
||||
so_method(so, nvfx->screen->eng3d, NV34TCL_STENCIL_BACK_FUNC_REF, 1);
|
||||
so_data (so, sr->ref_value[1]);
|
||||
|
||||
so_ref(so, &nvfx->state.hw[NVFX_STATE_SR]);
|
||||
so_ref(NULL, &so);
|
||||
WAIT_RING(chan, 4);
|
||||
OUT_RING(chan, RING_3D(NV34TCL_STENCIL_FRONT_FUNC_REF, 1));
|
||||
OUT_RING(chan, sr->ref_value[0]);
|
||||
OUT_RING(chan, RING_3D(NV34TCL_STENCIL_BACK_FUNC_REF, 1));
|
||||
OUT_RING(chan, sr->ref_value[1]);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
@ -35,6 +33,5 @@ struct nvfx_state_entry nvfx_state_sr = {
|
|||
.validate = nvfx_state_sr_validate,
|
||||
.dirty = {
|
||||
.pipe = NVFX_NEW_SR,
|
||||
.hw = NVFX_STATE_SR
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue