mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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>
This commit is contained in:
parent
e11e9d6394
commit
25ec806eb2
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue