[Mesa-dev] [PATCH] i965: Fix fast depth clear values on Broadwell.

Eric Anholt eric at anholt.net
Fri Feb 7 14:29:29 PST 2014


Kenneth Graunke <kenneth at whitecape.org> writes:

> Broadwell's 3DSTATE_CLEAR_PARAMS packet expects a floating point value
> regardless of format.  This means we need to stop converting it to
> UNORM.
>
> Storing the value as float would make sense, but since we already have a
> uint32_t field, this patch continues shoehorning it into that.  In a
> sense, this makes mt->depth_clear_value the DWord you emit in the
> packet, rather than the clear value itself.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140207/45ef68ca/attachment-0001.pgp>


More information about the mesa-dev mailing list