mesa/main: export _is_multisample_target for external usage
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14362>
This commit is contained in:
parent
91661a3938
commit
2c994e17c1
|
@ -863,8 +863,8 @@ _get_min_dimensions(GLenum pname)
|
|||
* Similar to teximage.c:check_multisample_target, but independent of the
|
||||
* dimensions.
|
||||
*/
|
||||
static bool
|
||||
_is_multisample_target(GLenum target)
|
||||
bool
|
||||
_mesa_is_multisample_target(GLenum target)
|
||||
{
|
||||
switch(target) {
|
||||
case GL_TEXTURE_2D_MULTISAMPLE:
|
||||
|
@ -1104,7 +1104,7 @@ _mesa_GetInternalformativ(GLenum target, GLenum internalformat, GLenum pname,
|
|||
* returned as MAX_HEIGHT or MAX_DEPTH */
|
||||
for (i = 0; i < 4; i++) {
|
||||
if (max_dimensions_pnames[i] == GL_SAMPLES &&
|
||||
!_is_multisample_target(target))
|
||||
!_mesa_is_multisample_target(target))
|
||||
continue;
|
||||
|
||||
_mesa_GetInternalformativ(target, internalformat,
|
||||
|
|
|
@ -35,4 +35,7 @@ _mesa_query_internal_format_default(struct gl_context *ctx, GLenum target,
|
|||
GLenum internalFormat, GLenum pname,
|
||||
GLint *params);
|
||||
|
||||
bool
|
||||
_mesa_is_multisample_target(GLenum target);
|
||||
|
||||
#endif /* FORMATQUERY_H */
|
||||
|
|
Loading…
Reference in New Issue