OSDN Git Service

broadcom/vc5: Fix UIF surface size setup for ARB_fbo's mismatched sizes.
authorEric Anholt <eric@anholt.net>
Tue, 21 Nov 2017 23:00:36 +0000 (15:00 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 22 Nov 2017 18:56:31 +0000 (10:56 -0800)
commitb18840ac6e0b6cb4d8a7b7b6a5c504561e3a8696
tree826506be89963199c935c7c3dd593c95fb027174
parent9f162fa10749fe4ed3dd59d320852e1476420be6
broadcom/vc5: Fix UIF surface size setup for ARB_fbo's mismatched sizes.

The HW was computing an implicit height for the surface based on the image
size, but that may be smaller than the surface with ARB_fbo mismatched
sizes.  In that case, we need to tell it about the pad, either with the
little 4-bit field in the RT config, or the extended field in
CLEAR_COLORS_PART3.

Fixes piglit arb_framebuffer_object-mixed-buffer-sizes.
src/gallium/drivers/vc5/vc5_rcl.c