[Mesa-dev] SandyBridge's 'resinfo' -> returned value for SURFTYPE_BUFFER?

Kenneth Graunke kenneth at whitecape.org
Tue Sep 30 15:41:01 PDT 2014


On Tuesday, September 30, 2014 11:37:37 AM Matt Turner wrote:
> On Tue, Sep 30, 2014 at 5:22 AM, Samuel Iglesias Gonsálvez
> <siglesias at igalia.com> wrote:
> > Hello,
> >
> > I am looking at bug 57439 [0] where it shows an error
> > in a piglit test [1] related to textureSize() function happening
> > in Intel SandyBridge hardware.
> >
> > According to SNB's PRM documentation (vol4 part1 page 141), the
> > returned value for SURFTYPE_BUFFER (the surface type used in the test)
> > is not defined in the 'resinfo' message type. For IvyBridge's doc it is
> > defined as the buffer size, which is calculated from combined
> > Depth/Height/Width values.
> >
> > As it is not clear that SNB returns the same value than IVB for that
> > kind of message and surface type, I send this email here asking for a
> > clarification :-)
> 
> Yes, I can confirm that the internal BSpec says on Sandybridge resinfo
> for SURFTYPE_BUFFER (and SURFTYPE_STRBUF, same thing?) returns
> undefined results in all channels.

SURFTYPE_STRBUF is "Structured Buffer" - it's a bit different.  They have a format, and you access them using the Typed read/write messages.

--Ken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140930/ceb55a67/attachment.sig>


More information about the mesa-dev mailing list