[Mesa-dev] [PATCH 21/64] isl/state: Set the IntegerSurfaceFormat bit on Haswell

Jason Ekstrand jason at jlekstrand.net
Thu Jun 16 18:54:06 UTC 2016


On Thu, Jun 16, 2016 at 11:26 AM, Chad Versace <chad.versace at intel.com>
wrote:

> On Sat 11 Jun 2016, Jason Ekstrand wrote:
> > This fixes 688 Vulkan CTS tests on Haswell.
>
> Whoo! Bugfixes!
>
> The PRM states that, on HSW, you also need to program
> SAMPLER_BORDER_COLOR_STATE correctly for integer formats. I suspect that
> the CTS tests may be passing by luck.
>
> See this encouraging comment in brw_sampler_state.c:
>
>       /* Haswell's integer border color support is completely insane:
>        * SAMPLER_BORDER_COLOR_STATE is 20 DWords.  The first four are
>        * for float colors.  The next 12 DWords are MBZ and only exist to
>        * pad it out to a 64 byte cacheline boundary.  DWords 16-19 then
>        * contain integer colors; these are only used if SURFACE_STATE
>        * has the "Integer Surface Format" bit set.  Even then, the
>        * arrangement of the RGBA data devolves into madness.
>        */
>

Oh, I'm well aware of the insanity there!  I reviewed those patches.


>
> Anyway, this patch is
> Reviewed-by: Chad Versace <chad.versace at intel.com>
> and please add a TODO somewhere for SAMPLER_BORDER_COLOR_STATE.
>

I'm not quite sure where to put that TODO...  Sadly, integer border color
will probably never work properly on Haswell :-(
--Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160616/8df0986f/attachment-0001.html>


More information about the mesa-dev mailing list