Mesa (master): mesa: Fix FLUSH_VERTICES in SubpixelPrecisionBiasNV.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Feb 19 17:27:07 UTC 2020
Module: Mesa
Branch: master
Commit: 6edbb3c6d07a395c3cd0b1b5290ecac3943c4286
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6edbb3c6d07a395c3cd0b1b5290ecac3943c4286
Author: Mathias Fröhlich <mathias.froehlich at web.de>
Date: Mon Sep 23 08:10:37 2019 +0200
mesa: Fix FLUSH_VERTICES in SubpixelPrecisionBiasNV.
The FLUSH_VERTICES macro is supposed to be called before the current
context state is changed.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
---
src/mesa/main/viewport.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c
index 97d328541b2..f4dc74ae41a 100644
--- a/src/mesa/main/viewport.c
+++ b/src/mesa/main/viewport.c
@@ -610,10 +610,11 @@ subpixel_precision_bias(struct gl_context *ctx, GLuint xbits, GLuint ybits)
if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug(ctx, "glSubpixelPrecisionBiasNV(%u, %u)\n", xbits, ybits);
+ FLUSH_VERTICES(ctx, 0);
+
ctx->SubpixelPrecisionBias[0] = xbits;
ctx->SubpixelPrecisionBias[1] = ybits;
- FLUSH_VERTICES(ctx, 0);
ctx->NewDriverState |=
ctx->DriverFlags.NewNvConservativeRasterizationParams;
}
More information about the mesa-commit
mailing list