[Mesa-dev] [PATCH v2 6/8] nvc0: Fix blits with inverted conditional rendering
Ilia Mirkin
imirkin at alum.mit.edu
Sun Aug 17 14:24:38 PDT 2014
Fold this with the previous change -- otherwise there's a commit where
nvc0 has this feature enabled but it's broken.
On Sun, Aug 17, 2014 at 5:15 PM, Tobias Klausmann
<tobias.johannes.klausmann at mni.thm.de> wrote:
> Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>
> ---
> src/gallium/drivers/nouveau/nvc0/nvc0_surface.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
> index a29f0cc..622193b 100644
> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
> @@ -1210,6 +1210,8 @@ nvc0_blit_eng2d(struct nvc0_context *nvc0, const struct pipe_blit_info *info)
> int64_t du_dx, dv_dy;
> int i;
> uint32_t mode;
> + uint32_t cond = nvc0->cond_cond ? NVC0_2D_COND_MODE_EQUAL :
> + NVC0_2D_COND_MODE_NOT_EQUAL;
> uint32_t mask = nv50_blit_eng2d_get_mask(info);
> boolean b;
>
> @@ -1236,7 +1238,7 @@ nvc0_blit_eng2d(struct nvc0_context *nvc0, const struct pipe_blit_info *info)
> }
>
> if (nvc0->cond_query && info->render_condition_enable)
> - IMMED_NVC0(push, NVC0_2D(COND_MODE), NVC0_2D_COND_MODE_RES_NON_ZERO);
> + IMMED_NVC0(push, NVC0_2D(COND_MODE), cond);
>
> if (mask != 0xffffffff) {
> IMMED_NVC0(push, NVC0_2D(ROP), 0xca); /* DPSDxax */
> --
> 1.8.4.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list