i965: Rename some vague format members of brw_context
authorChad Versace <chadversary@chromium.org>
Tue, 30 May 2017 22:39:26 +0000 (15:39 -0700)
committerChad Versace <chadversary@chromium.org>
Thu, 22 Jun 2017 19:43:53 +0000 (12:43 -0700)
commitc09b2aefae95db6ebf3f7b10c6d69286eddb2dd4
tree2e22fc8134cd0493beab0217a58c14955e26e7b0
parentffbf50b1c67b90c6f45e9128e4ff6ef9c4ac5c29
i965: Rename some vague format members of brw_context

I'm swimming in a vortex of formats. Mesa formats, isl formats, DRI
formats, GL formats, etc.

It's easy to misinterpret the following brw_context members unless
you've recently read their definition.  In upcoming patches, I change
them from embedded arrays to simple pointers; after that, even their
definition doesn't help, because the MESA_FORMAT_COUNT hint will no
longer be present.

Rename them to prevent further confusion. While we're renaming, choose
shorter names too.

    -format_supported_as_render_target
    +mesa_format_supports_render

    -render_target_format
    +mesa_to_isl_render_format

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_meta_util.c
src/mesa/drivers/dri/i965/brw_surface_formats.c
src/mesa/drivers/dri/i965/brw_tex_layout.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/intel_fbo.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_tex.c