freedreno/a5xx: remove copapasta from a4xx
authorRob Clark <robdclark@gmail.com>
Sat, 20 May 2017 13:54:08 +0000 (09:54 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 23 May 2017 16:26:35 +0000 (12:26 -0400)
Won't ever hit this w/ a420 gpu, so this is dead code.  Need to get astc
working to know whether to rip this out entirely or not.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a5xx/fd5_texture.c

index 127cf33ba00deb77b0ccff2f2771ba37efea5078..1adfd3fa02ae9324eb386fd3f8533d92d60c5b92 100644 (file)
@@ -212,8 +212,7 @@ tex_type(unsigned target)
 static bool
 use_astc_srgb_workaround(struct pipe_context *pctx, enum pipe_format format)
 {
-       return (fd_screen(pctx->screen)->gpu_id == 420) &&
-               (util_format_description(format)->layout == UTIL_FORMAT_LAYOUT_ASTC);
+       return false;  // TODO check if this is still needed on a5xx
 }
 
 static struct pipe_sampler_view *