/**
* Query format support for creating a texture, drawing surface, etc.
* \param format the format to test
- * \param type one of PIPE_TEXTURE, PIPE_SURFACE, PIPE_SCREEN_SURFACE
+ * \param type one of PIPE_TEXTURE, PIPE_SURFACE
*/
static boolean
i915_is_format_supported( struct pipe_context *pipe,
PIPE_FORMAT_A8R8G8B8_UNORM,
PIPE_FORMAT_R5G6B5_UNORM,
PIPE_FORMAT_S8Z24_UNORM,
- PIPE_FORMAT_R16G16B16A16_SNORM,
- PIPE_FORMAT_NONE /* list terminator */
- };
- static const enum pipe_format screen_surface_supported[] = {
- PIPE_FORMAT_A8R8G8B8_UNORM,
- PIPE_FORMAT_R5G6B5_UNORM,
+ /*PIPE_FORMAT_R16G16B16A16_SNORM,*/
PIPE_FORMAT_NONE /* list terminator */
};
const enum pipe_format *list;
case PIPE_SURFACE:
list = surface_supported;
break;
- case PIPE_SCREEN_SURFACE:
- list = screen_surface_supported;
- break;
default:
assert(0);
}
static boolean
brw_is_format_supported( struct pipe_context *pipe,
- uint format )
+ enum pipe_format format, uint type )
{
#if 0
/* XXX: This is broken -- rewrite if still needed. */
case PIPE_FORMAT_R5G6B5_UNORM:
case PIPE_FORMAT_S8Z24_UNORM:
return TRUE;
+ default:
+ return FALSE;
};
return FALSE;
#endif
/**
* Query format support for creating a texture, drawing surface, etc.
* \param format the format to test
- * \param type one of PIPE_TEXTURE, PIPE_SURFACE, PIPE_SCREEN_SURFACE
+ * \param type one of PIPE_TEXTURE, PIPE_SURFACE
*/
static boolean
softpipe_is_format_supported( struct pipe_context *pipe,
case PIPE_SURFACE:
/* softpipe supports all (off-screen) surface formats */
return TRUE;
- case PIPE_SCREEN_SURFACE:
- return softpipe->winsys->is_format_supported( softpipe->winsys, format );
default:
assert(0);
return FALSE;