mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 02:40:46 +02:00
nvc0: turn sample counts off during blit
Fixes the following piglits: occlusion_query_meta_fragments occlusion_query_meta_no_fragments Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
87d2e15b1a
commit
38c2ec5ff0
1 changed files with 7 additions and 0 deletions
|
|
@ -1376,6 +1376,7 @@ static void
|
|||
nvc0_blit(struct pipe_context *pipe, const struct pipe_blit_info *info)
|
||||
{
|
||||
struct nvc0_context *nvc0 = nvc0_context(pipe);
|
||||
struct nouveau_pushbuf *push = nvc0->base.pushbuf;
|
||||
boolean eng3d = FALSE;
|
||||
|
||||
if (util_format_is_depth_or_stencil(info->dst.resource->format)) {
|
||||
|
|
@ -1439,11 +1440,17 @@ nvc0_blit(struct pipe_context *pipe, const struct pipe_blit_info *info)
|
|||
info->src.box.height != -info->dst.box.height))
|
||||
eng3d = TRUE;
|
||||
|
||||
if (nvc0->screen->num_occlusion_queries_active)
|
||||
IMMED_NVC0(push, NVC0_3D(SAMPLECNT_ENABLE), 0);
|
||||
|
||||
if (!eng3d)
|
||||
nvc0_blit_eng2d(nvc0, info);
|
||||
else
|
||||
nvc0_blit_3d(nvc0, info);
|
||||
|
||||
if (nvc0->screen->num_occlusion_queries_active)
|
||||
IMMED_NVC0(push, NVC0_3D(SAMPLECNT_ENABLE), 1);
|
||||
|
||||
NOUVEAU_DRV_STAT(&nvc0->screen->base, tex_blit_count, 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue