mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
use winsys supported_formats() query
This commit is contained in:
parent
5b30113236
commit
fb4ff8a2a8
1 changed files with 5 additions and 0 deletions
|
|
@ -53,6 +53,7 @@
|
||||||
static const GLuint *
|
static const GLuint *
|
||||||
softpipe_supported_formats(struct pipe_context *pipe, GLuint *numFormats)
|
softpipe_supported_formats(struct pipe_context *pipe, GLuint *numFormats)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
static const GLuint supported[] = {
|
static const GLuint supported[] = {
|
||||||
PIPE_FORMAT_U_R8_G8_B8_A8,
|
PIPE_FORMAT_U_R8_G8_B8_A8,
|
||||||
PIPE_FORMAT_U_A8_R8_G8_B8,
|
PIPE_FORMAT_U_A8_R8_G8_B8,
|
||||||
|
|
@ -73,6 +74,10 @@ softpipe_supported_formats(struct pipe_context *pipe, GLuint *numFormats)
|
||||||
|
|
||||||
*numFormats = sizeof(supported)/sizeof(supported[0]);
|
*numFormats = sizeof(supported)/sizeof(supported[0]);
|
||||||
return supported;
|
return supported;
|
||||||
|
#else
|
||||||
|
struct softpipe_context *softpipe = softpipe_context( pipe );
|
||||||
|
return softpipe->winsys->supported_formats( softpipe->winsys, numFormats );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue