Re: [Mesa-dev] [PATCH] st/mesa: fix accum buffer allocation in st_renderbuffer_alloc_storage()

2011-11-22 Thread Jose Fonseca
- Original Message - > If the gallium driver doesn't support PIPE_FORMAT_R16G16B16A16_SNORM > the call to st_choose_renderbuffer_format() would fail and we'd > generate > an GL_OUT_OF_MEMORY error. We'd never get to the subsequent code > that > handles software/malloc-based renderbuffers

[Mesa-dev] [PATCH] st/mesa: fix accum buffer allocation in st_renderbuffer_alloc_storage()

2011-11-21 Thread Brian Paul
If the gallium driver doesn't support PIPE_FORMAT_R16G16B16A16_SNORM the call to st_choose_renderbuffer_format() would fail and we'd generate an GL_OUT_OF_MEMORY error. We'd never get to the subsequent code that handles software/malloc-based renderbuffers. Add a special-case check for PIPE_FORMAT