[Mesa-dev] [PATCH 4/4] intel: Support native Z16 depth textures (including as renderbuffer) on i965.
Eric Anholt
eric at anholt.net
Mon Nov 14 08:26:23 PST 2011
On Fri, 11 Nov 2011 14:09:51 -0800, Ian Romanick <idr at freedesktop.org> wrote:
> On 11/11/2011 10:57 AM, Eric Anholt wrote:
> > This is required for GL 3.0. The old comment about Z24 is dropped,
> > since we support X8_Z24 now.
> > ---
> > src/mesa/drivers/dri/intel/intel_context.c | 13 ++-----------
> > 1 files changed, 2 insertions(+), 11 deletions(-)
> >
> > diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
> > index d00d5d4..4ee7e35 100644
> > --- a/src/mesa/drivers/dri/intel/intel_context.c
> > +++ b/src/mesa/drivers/dri/intel/intel_context.c
> > @@ -648,21 +648,12 @@ intelInitContext(struct intel_context *intel,
> > }
> >
> > /* Depth and stencil */
> > + if (intel->gen>= 4)
> > + ctx->TextureFormatSupported[MESA_FORMAT_Z16] = true;
>
> Why is this restricted to GEN4+? i915 can do 16-bit depth, and it looks
> like it can handle 16-bit textures.
i915 had all sorts of restrictions on using 16-bit depth as I recall.
I wouldn't do it without testing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111114/fb88b5dc/attachment.pgp>
More information about the mesa-dev
mailing list