diff options
author | Danylo Piliaiev <danylo.piliaiev@gmail.com> | 2018-06-18 15:50:57 +0300 |
---|---|---|
committer | Andres Gomez <agomez@igalia.com> | 2018-08-21 15:46:01 +0300 |
commit | 5457e58a64b0aba808a055d72610c5ba856a4f09 (patch) | |
tree | 019d250f77d96cf975d7445246249a031270fc44 | |
parent | 1e9c4228942a8cf23045938daf333a2b91cd6229 (diff) |
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@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
(cherry picked from commit 25ec806eb249603ad0364365ab620628cf25f031)
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 136f1325c6e..ed9e9d7594c 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -695,7 +695,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. */ |