aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEduardo Lima Mitev <[email protected]>2018-10-23 07:56:58 +0200
committerEduardo Lima Mitev <[email protected]>2018-10-23 21:29:15 +0200
commit22ddd4988e177cc51923d10f088a17edcde9517d (patch)
tree29626fb0bb1fa5741d866a4745d07a398a87db2b /src/mesa/drivers
parentecb7775e1cac7f3119e5d1c31ce1572509c0f1bb (diff)
mesa/glformats: Remove redundant helper _mesa_base_format_component_count
There exists _mesa_components_in_format() which already includes all cases handled in _mesa_base_format_component_count(). Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c
index ad3a47ef035..b286b231537 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.c
+++ b/src/mesa/drivers/dri/i965/brw_blorp.c
@@ -1195,7 +1195,7 @@ set_write_disables(const struct intel_renderbuffer *irb,
* RGB we can treat alpha as not used and write whatever we like into it.
*/
const GLenum base_format = irb->Base.Base._BaseFormat;
- const int components = _mesa_base_format_component_count(base_format);
+ const int components = _mesa_components_in_format(base_format);
bool disables = false;
assert(components > 0);