Commit 1cb78fac authored by Yusuf Khan's avatar Yusuf Khan
Browse files

nvk: enable zcull



Signed-off-by: Yusuf Khan's avatarYusuf Khan <yusisamerican@gmail.com>
parent b915c45c
Pipeline #675089 waiting for manual action with stages
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -1039,6 +1039,10 @@ nvc0_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info,
PUSH_DATA (push, drawid_offset);
}
PUSH_SPACE(push, 2);
BEGIN_NIC0(push, SUBC_3D(NV9097_SET_ZCULL_STATS));
PUSH_DATA (push, true);
if (nvc0->screen->base.class_3d < NVE4_3D_CLASS &&
nvc0->seamless_cube_map != nvc0->state.seamless_cube_map) {
nvc0->state.seamless_cube_map = nvc0->seamless_cube_map;
......@@ -1047,6 +1051,10 @@ nvc0_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info,
nvc0->seamless_cube_map ? NVC0_3D_TEX_MISC_SEAMLESS_CUBE_MAP : 0);
}
PUSH_SPACE(push, 2);
BEGIN_NIC0(push, SUBC_3D(NV9097_SET_ACTIVE_ZCULL_REGION));
PUSH_DATA (push, 0x3f);
push->kick_notify = nvc0_draw_vbo_kick_notify;
for (s = 0; s < 5 && !nvc0->cb_dirty; ++s) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment