gallium: Finer grained is_format_supported.
This commit is contained in:
@@ -746,7 +746,8 @@ st_init_bitmap(struct st_context *st)
|
||||
st->bitmap.rasterizer.bypass_vs = 1;
|
||||
|
||||
/* find a usable texture format */
|
||||
if (screen->is_format_supported(screen, PIPE_FORMAT_I8_UNORM, PIPE_TEXTURE)) {
|
||||
if (screen->is_format_supported(screen, PIPE_FORMAT_I8_UNORM, PIPE_TEXTURE_2D,
|
||||
PIPE_TEXTURE_USAGE_SAMPLER, 0)) {
|
||||
st->bitmap.tex_format = PIPE_FORMAT_I8_UNORM;
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user