mesa/st: disable ARB_framebuffer_object when no driver support.
When PIPE_CAP_MIXED_FRAMEBUFFER_SIZES is not provided, parts of ARB_framebuffer_object can't be supported, such as on NV30. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
@@ -445,8 +445,7 @@ void st_init_extensions(struct st_context *st)
|
|||||||
{ PIPE_FORMAT_Z32_FLOAT,
|
{ PIPE_FORMAT_Z32_FLOAT,
|
||||||
PIPE_FORMAT_Z32_FLOAT_S8X24_UINT } },
|
PIPE_FORMAT_Z32_FLOAT_S8X24_UINT } },
|
||||||
|
|
||||||
{ { o(ARB_framebuffer_object),
|
{ { o(EXT_packed_depth_stencil) },
|
||||||
o(EXT_packed_depth_stencil) },
|
|
||||||
{ PIPE_FORMAT_S8_UINT_Z24_UNORM,
|
{ PIPE_FORMAT_S8_UINT_Z24_UNORM,
|
||||||
PIPE_FORMAT_Z24_UNORM_S8_UINT },
|
PIPE_FORMAT_Z24_UNORM_S8_UINT },
|
||||||
GL_TRUE }, /* at least one format must be supported */
|
GL_TRUE }, /* at least one format must be supported */
|
||||||
@@ -760,6 +759,10 @@ void st_init_extensions(struct st_context *st)
|
|||||||
PIPE_BUFFER, PIPE_BIND_SAMPLER_VIEW);
|
PIPE_BUFFER, PIPE_BIND_SAMPLER_VIEW);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (screen->get_param(screen, PIPE_CAP_MIXED_FRAMEBUFFER_SIZES) &&
|
||||||
|
ctx->Extensions.EXT_packed_depth_stencil) {
|
||||||
|
ctx->Extensions.ARB_framebuffer_object = GL_TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Unpacking a varying in the fragment shader costs 1 texture indirection.
|
/* Unpacking a varying in the fragment shader costs 1 texture indirection.
|
||||||
* If the number of available texture indirections is very limited, then we
|
* If the number of available texture indirections is very limited, then we
|
||||||
|
Reference in New Issue
Block a user