mesa: add hardware accelerated select constant

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/15765>
This commit is contained in:
Qiang Yu 2022-03-07 15:37:03 +08:00 committed by Marge Bot
parent ff8ae4e589
commit 2224d6c35d
2 changed files with 5 additions and 0 deletions

View File

@ -994,5 +994,8 @@ struct gl_constants
GLuint MaxSparse3DTextureSize;
GLuint MaxSparseArrayTextureLayers;
bool SparseTextureFullArrayCubeMipmaps;
/** Use hardware accelerated GL_SELECT */
bool HardwareAcceleratedSelect;
};
#endif

View File

@ -626,6 +626,8 @@ void st_init_limits(struct pipe_screen *screen,
screen->get_param(screen, PIPE_CAP_MAX_SPARSE_ARRAY_TEXTURE_LAYERS);
c->SparseTextureFullArrayCubeMipmaps =
screen->get_param(screen, PIPE_CAP_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS);
c->HardwareAcceleratedSelect = false;
}