mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
Update intel_is_format_supported.
This commit is contained in:
parent
da9815e17f
commit
f33ced441c
1 changed files with 10 additions and 12 deletions
|
|
@ -45,22 +45,20 @@ struct intel_softpipe_winsys {
|
|||
/**
|
||||
* Return list of surface formats supported by this driver.
|
||||
*/
|
||||
static const unsigned *
|
||||
intel_is_format_supported(struct softpipe_winsys *sws,
|
||||
unsigned *numFormats)
|
||||
static boolean
|
||||
intel_is_format_supported(struct softpipe_winsys *sws, uint format)
|
||||
{
|
||||
static const GLuint formats[] = {
|
||||
PIPE_FORMAT_U_A8_R8_G8_B8,
|
||||
PIPE_FORMAT_U_R5_G6_B5,
|
||||
PIPE_FORMAT_S8_Z24,
|
||||
};
|
||||
|
||||
*numFormats = sizeof(formats) / sizeof(formats[0]);
|
||||
return formats;
|
||||
switch(format) {
|
||||
case PIPE_FORMAT_U_A8_R8_G8_B8:
|
||||
case PIPE_FORMAT_U_R5_G6_B5:
|
||||
case PIPE_FORMAT_S8_Z24:
|
||||
return TRUE;
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct pipe_context *
|
||||
intel_create_softpipe( struct intel_context *intel )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue