summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-02-21 09:44:33 -0600
committerJason Ekstrand <[email protected]>2019-02-21 09:44:42 -0600
commitf9b2f10a4115b0fef8e7731b5902235c1ec98bcf (patch)
tree37c503492ef196844e64106cc3540a34d90a669f /src/compiler/nir
parent908d5ee9eb5d00a114a9ee9e6dc595a894cb7b88 (diff)
nir: Fix a compile warning
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_gather_xfb_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_gather_xfb_info.c b/src/compiler/nir/nir_gather_xfb_info.c
index 29e794cd4b5..ee0546ed39f 100644
--- a/src/compiler/nir/nir_gather_xfb_info.c
+++ b/src/compiler/nir/nir_gather_xfb_info.c
@@ -72,7 +72,7 @@ add_var_xfb_outputs(nir_xfb_info *xfb,
} else {
comp_slots = glsl_get_component_slots(type);
- unsigned attrib_slots = DIV_ROUND_UP(comp_slots, 4);
+ UNUSED unsigned attrib_slots = DIV_ROUND_UP(comp_slots, 4);
assert(attrib_slots == glsl_count_attribute_slots(type, false));
/* Ensure that we don't have, for instance, a dvec2 with a