glamor: Handle GL_OUT_OF_MEMORY from glTexImage

Michel Dänzer michel at daenzer.net
Mon Nov 9 23:12:17 PST 2015


On 07.11.2015 05:21, Eric Anholt wrote:
> One of the troubles vc4 has with doing X with glamor is that we've
> only really got 256MB to play with.  It's pretty easy to run out of
> that, particularly with glamor's FBO cache camping on so much
> memory. When we do run out, we get a GL_OUT_OF_MEMORY error from
> either a TexImage call or a glBufferData call.  This series covers the
> TexImage case, avoiding crashes in that path
> 
> I've tested it with piglit's xts-render on an i965 driver that throws
> GL_OOM on every third glTexImage call.  One new test (rendercheck's
> large_blend_src) fails compared to a working i965 on server master,
> but the series doesn't make it worse.
> 
> The code can be found on the glamor-gloom branch of my tree.

The series is

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the xorg-devel mailing list