mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
i965: set ctx->Const.MaxViewport{Width,Height} to 32k
From ARB_viewport_array spec:
" * On GL3-capable hardware the VIEWPORT_BOUNDS_RANGE should be at least
[-16384, 16383].
* On GL4-capable hardware the VIEWPORT_BOUNDS_RANGE should be at least
[-32768, 32767]."
This range is set using ctx->Const.MaxViewportWidth value, so just bump
those constants to 32k for gen7+ which can support OpenGL 4.0.
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
add57b3fa8
commit
e8fd60e789
1 changed files with 5 additions and 0 deletions
|
|
@ -682,6 +682,11 @@ brw_initialize_context_constants(struct brw_context *brw)
|
||||||
brw->intelScreen->compiler->glsl_compiler_options[i];
|
brw->intelScreen->compiler->glsl_compiler_options[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (brw->gen >= 7) {
|
||||||
|
ctx->Const.MaxViewportWidth = 32768;
|
||||||
|
ctx->Const.MaxViewportHeight = 32768;
|
||||||
|
}
|
||||||
|
|
||||||
/* ARB_viewport_array */
|
/* ARB_viewport_array */
|
||||||
if (brw->gen >= 6 && ctx->API == API_OPENGL_CORE) {
|
if (brw->gen >= 6 && ctx->API == API_OPENGL_CORE) {
|
||||||
ctx->Const.MaxViewports = GEN6_NUM_VIEWPORTS;
|
ctx->Const.MaxViewports = GEN6_NUM_VIEWPORTS;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue