svga: util_format_is_compressed() -> util_format_is_s3tc().
This commit is contained in:
@@ -330,7 +330,7 @@ svga_texture_create(struct pipe_screen *screen,
|
||||
*/
|
||||
#if 0
|
||||
if((templat->tex_usage & PIPE_TEXTURE_USAGE_RENDER_TARGET) &&
|
||||
!util_format_is_compressed(templat->format))
|
||||
!util_format_is_s3tc(templat->format))
|
||||
tex->key.flags |= SVGA3D_SURFACE_HINT_RENDERTARGET;
|
||||
#endif
|
||||
|
||||
@@ -969,7 +969,7 @@ svga_get_tex_sampler_view(struct pipe_context *pipe, struct pipe_texture *pt,
|
||||
if (min_lod == 0 && max_lod >= pt->last_level)
|
||||
view = FALSE;
|
||||
|
||||
if (util_format_is_compressed(pt->format) && view) {
|
||||
if (util_format_is_s3tc(pt->format) && view) {
|
||||
format = svga_translate_format_render(pt->format);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user