Mesa (staging/18.1): i965: Advertise 8 bits subpixel precision for viewport bounds on gen6+
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Aug 21 15:28:16 UTC 2018
Module: Mesa
Branch: staging/18.1
Commit: 3268ca90f06740889cd9d396c084dec33801724f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3268ca90f06740889cd9d396c084dec33801724f
Author: Danylo Piliaiev <danylo.piliaiev at gmail.com>
Date: Mon Jun 18 15:50:57 2018 +0300
i965: Advertise 8 bits subpixel precision for viewport bounds on gen6+
We use floating-points for viewport bounds so VIEWPORT_SUBPIXEL_BITS
should reflect this.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105975
Signed-off-by: Danylo Piliaiev <danylo.piliaiev at globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
(cherry picked from commit 25ec806eb249603ad0364365ab620628cf25f031)
---
src/mesa/drivers/dri/i965/brw_context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 8f91c2c270..68259fe4fb 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -688,7 +688,7 @@ brw_initialize_context_constants(struct brw_context *brw)
/* ARB_viewport_array, OES_viewport_array */
if (devinfo->gen >= 6) {
ctx->Const.MaxViewports = GEN6_NUM_VIEWPORTS;
- ctx->Const.ViewportSubpixelBits = 0;
+ ctx->Const.ViewportSubpixelBits = 8;
/* Cast to float before negating because MaxViewportWidth is unsigned.
*/
More information about the mesa-commit
mailing list