i965: Set MaxFramebufferWidth/Height to 16384, not viewport.
dEQP-GLES31.functional.fbo.no_attachments.maximums.{all,height,size,width}
started hitting assertion failures when emitting SURFACE_STATE, after
commit e8fd60e789 where Samuel increased the maximum viewport size to
32768, from 16384.
MaxFramebufferWidth/Height were being set to the maximum viewport size,
but are actually limited by the SURFACE_STATE width/height field range,
which is 16384 on Gen7+ (where ARB_framebuffer_no_attachments is
exposed). So, reduce these to 16384 explicitly.
Fixes assert fails in the above mentioned dEQP tests. (Those tests
still fail, however.)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
This commit is contained in:
parent
a6046d217d
commit
9ec246796f
1 changed files with 2 additions and 2 deletions
|
|
@ -665,8 +665,8 @@ brw_initialize_context_constants(struct brw_context *brw)
|
|||
ctx->Const.MaxVertexStreams = MIN2(4, MAX_VERTEX_STREAMS);
|
||||
|
||||
/* ARB_framebuffer_no_attachments */
|
||||
ctx->Const.MaxFramebufferWidth = ctx->Const.MaxViewportWidth;
|
||||
ctx->Const.MaxFramebufferHeight = ctx->Const.MaxViewportHeight;
|
||||
ctx->Const.MaxFramebufferWidth = 16384;
|
||||
ctx->Const.MaxFramebufferHeight = 16384;
|
||||
ctx->Const.MaxFramebufferLayers = ctx->Const.MaxArrayTextureLayers;
|
||||
ctx->Const.MaxFramebufferSamples = max_samples;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue