[Mesa-dev] [PATCH 00/10] i965: add ARB_shader_texture_image_samples support

Kenneth Graunke kenneth at whitecape.org
Sat Aug 29 13:27:21 PDT 2015


On Friday, August 28, 2015 12:54:35 PM Ilia Mirkin wrote:
> On Fri, Aug 28, 2015 at 6:58 AM, Francisco Jerez <currojerez at riseup.net> wrote:
> > Ilia Mirkin <imirkin at alum.mit.edu> writes:
> >
> >> This should include everything. I sent a test for textureSamples to
> >> piglit a while ago, not sure how to test imageSamples -- apparently ms
> >> images aren't entirely supported on i965? But I'm not sure via what
> >> feat that happens.
> >>
> > i965 doesn't support MS images because on Gen7-8 it would involve either
> > converting all MS textures to UMS on the fly or implementing the
> > compressed MS layout in software, which would be even more madness.  On
> > Gen9 and up though it's supported natively by the hardware and it
> > shouldn't be too difficult to implement, I just haven't had the chance
> > to do the work yet.
> 
> Yeah, I've heard that before, but... what exactly prevents one from
> using a 2DMS image? I didn't see anything that checked if the images
> were MS.
> 
>   -ilia

We set ctx->Const.MaxImageSamples = 0 (brw_context.c:518), which is
exposed to the application as glGetInteger(GL_MAX_IMAGE_SAMPLES).

I see some validation code in core Mesa that uses that field, but I
haven't looked too closely.
-------------- 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/20150829/9a2ebd23/attachment.sig>


More information about the mesa-dev mailing list