[Mesa-dev] [PATCH] i965: Use has_surface_tile_offset in depth/stencil alignment workaround.

Eric Anholt eric at anholt.net
Wed Nov 6 14:58:31 PST 2013


Kenneth Graunke <kenneth at whitecape.org> writes:

> Currently, has_surface_tile_offset is equivalent to gen == 4 && !is_g4x.
>
> We already use it for related checks in brw_wm_surface_state.c, so it
> makes sense to use it here too.  It's simpler and more future-proof.
>
> Broadwell also lacks surface tile offsets.  With this patch, I won't
> need to update any generation checking; I can simply not set the flag.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

Reviewed-by: Eric Anholt <eric at anholt.net>

I sure wish I could kill this code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131106/bc85078f/attachment.pgp>


More information about the mesa-dev mailing list