summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2015-06-09 14:33:47 -0700
committerEmil Velikov <emil.l.velikov@gmail.com>2015-09-04 21:20:05 +0100
commit6811df8d3510c35899e992bae82c063e20e62cc8 (patch)
treeb030dccd81c15f360bee1f2ccb367fec86f76176 /m4
parentcab11e0f73ad8e3ac42297621b1b49ea9724aabb (diff)
i965: Momentarily pretend to support ARB_texture_stencil8 for blits.
Broadwell's stencil blitting code attempts to bind a renderbuffer as a texture, using dd->BindRenderbufferTexImage(). This calls _mesa_init_teximage_fields(), which then attempts to set img->_BaseFormat = _mesa_base_tex_format(ctx, internalFormat), which assert fails if internalFormat is GL_STENCIL_INDEX8 but ARB_texture_stencil8 is unsupported. To work around this, just pretend to support the extension momentarily, during the blit. Meta has already munged a variety of other things in the context (including the API!), so it's not that much worse than what we're already doing. Fixes regressions since commit f7aad9da20b13c98f77d6a690b327716f39c0a47 (mesa/teximage: use correct extension for accept stencil texture.). v2: Add an XXX comment explaining the situation (requested by Jason Ekstrand and Martin Peres), and an assert that we don't support the extension so we remember to remove this hack (requested by Neil Roberts). Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> (cherry picked from commit f83b9e58f6e8a748def367c7d523eb7285b1aeb7) Nominated-by: Mark Janes <mark.a.janes@intel.com>
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions