<div dir="ltr"><div>The function can be removed completely, because it doesn't do anything now.</div><div><br></div><div>Marek<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 18, 2018 at 10:55 AM, Eric Engestrom <span dir="ltr"><<a href="mailto:eric.engestrom@intel.com" target="_blank">eric.engestrom@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Monday, 2018-06-18 07:31:49 -0700, Matt Turner wrote:<br>
> On Mon, Jun 18, 2018 at 3:15 AM Eric Engestrom <<a href="mailto:eric.engestrom@intel.com">eric.engestrom@intel.com</a>> wrote:<br>
> ><br>
> > As of 66673bef941af344314f ("mesa: Unconditionally enable floating-point<br>
> > textures"), the `bind` argument is no longer used, and the format check<br>
> > is now a simple enum range check, so inline it and remove the<br>
> > unnecessary argument from callers.<br>
> ><br>
> > Cc: Timothy Arceri <<a href="mailto:tarceri@itsqueeze.com">tarceri@itsqueeze.com</a>><br>
> > Cc: Matt Turner <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>><br>
> > Cc: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>><br>
> > Signed-off-by: Eric Engestrom <<a href="mailto:eric.engestrom@intel.com">eric.engestrom@intel.com</a>><br>
> > ---<br>
> > src/gallium/auxiliary/util/u_<wbr>format.c | 12 ------------<br>
> > src/gallium/auxiliary/util/u_<wbr>format.h | 7 +++++--<br>
> > src/gallium/drivers/freedreno/<wbr>a2xx/fd2_screen.c | 2 +-<br>
> > src/gallium/drivers/freedreno/<wbr>a3xx/fd3_screen.c | 2 +-<br>
> > src/gallium/drivers/freedreno/<wbr>a4xx/fd4_screen.c | 2 +-<br>
> > src/gallium/drivers/freedreno/<wbr>a5xx/fd5_screen.c | 2 +-<br>
> > src/gallium/drivers/i915/i915_<wbr>screen.c | 2 +-<br>
> > src/gallium/drivers/nouveau/<wbr>nv30/nv30_screen.c | 2 +-<br>
> > src/gallium/drivers/nouveau/<wbr>nv50/nv50_screen.c | 2 +-<br>
> > src/gallium/drivers/nouveau/<wbr>nvc0/nvc0_screen.c | 2 +-<br>
> > src/gallium/drivers/r300/r300_<wbr>screen.c | 2 +-<br>
> > src/gallium/drivers/r600/<wbr>evergreen_state.c | 2 +-<br>
> > src/gallium/drivers/r600/r600_<wbr>state.c | 2 +-<br>
> > src/gallium/drivers/radeonsi/<wbr>si_state.c | 2 +-<br>
> > src/gallium/drivers/v3d/v3d_<wbr>screen.c | 2 +-<br>
> > src/gallium/drivers/vc4/vc4_<wbr>screen.c | 2 +-<br>
> > 16 files changed, 19 insertions(+), 28 deletions(-)<br>
> ><br>
> > diff --git a/src/gallium/auxiliary/util/<wbr>u_format.c b/src/gallium/auxiliary/util/<wbr>u_format.c<br>
> > index e0325e9c534974b15c65..<wbr>d82d00a9d06fde2daeef 100644<br>
> > --- a/src/gallium/auxiliary/util/<wbr>u_format.c<br>
> > +++ b/src/gallium/auxiliary/util/<wbr>u_format.c<br>
> > @@ -235,18 +235,6 @@ util_format_is_subsampled_422(<wbr>enum pipe_format format)<br>
> > desc->block.bits == 32;<br>
> > }<br>
> ><br>
> > -boolean<br>
> > -util_format_is_supported(enum pipe_format format, unsigned bind)<br>
> > -{<br>
> > - if (format >= PIPE_FORMAT_COUNT) {<br>
> > - return FALSE;<br>
> > - }<br>
> > -<br>
> > - (void)bind;<br>
> > -<br>
> > - return TRUE;<br>
> > -}<br>
> > -<br>
> ><br>
> > /**<br>
> > * Calculates the MRD for the depth format. MRD is used in depth bias<br>
> > diff --git a/src/gallium/auxiliary/util/<wbr>u_format.h b/src/gallium/auxiliary/util/<wbr>u_format.h<br>
> > index e497b4b3375a57771009..<wbr>9c5df967b6c01288d0b3 100644<br>
> > --- a/src/gallium/auxiliary/util/<wbr>u_format.h<br>
> > +++ b/src/gallium/auxiliary/util/<wbr>u_format.h<br>
> > @@ -721,8 +721,11 @@ util_is_format_compatible(<wbr>const struct util_format_description *src_desc,<br>
> > * Whether the format is supported by Gallium for the given bindings.<br>
> > * This covers S3TC textures and floating-point render targets.<br>
> <br>
> I suspect this line was here because these two things might not be<br>
> available. But now they are :)<br>
> <br>
> I think this line should be removed.<br>
<br>
</div></div>Thanks! Done, as well as removing "for the given bindings".<br>
<div class="HOEnZb"><div class="h5"><br>
> <br>
> Reviewed-by: Matt Turner <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>><br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br></div>