summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_metadata.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-12-12 16:22:46 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:20:21 -0800
commitb6c81b3ff453d51898f86a819f80ea1128aea0fe (patch)
tree39d54cdc238d5eecb69f572fe52ef894a9c7244e /src/glsl/nir/nir_metadata.c
parent3c2c0a164c2308a5777d7a59b6da4b44a57ba6e2 (diff)
nir/metadata: Rename metadata_dirty to metadata_preserve
nir_metadata_dirty was a terrible name because the parameter it takes is the metadata to be preserved. This is really confusing because it looks like it's doing the opposite of what it is actually doing. Now it's named sensibly. Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_metadata.c')
-rw-r--r--src/glsl/nir/nir_metadata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_metadata.c b/src/glsl/nir/nir_metadata.c
index a4d618ccc05..a03e12456a1 100644
--- a/src/glsl/nir/nir_metadata.c
+++ b/src/glsl/nir/nir_metadata.c
@@ -48,7 +48,7 @@ nir_metadata_require(nir_function_impl *impl, nir_metadata required)
}
void
-nir_metadata_dirty(nir_function_impl *impl, nir_metadata preserved)
+nir_metadata_preserve(nir_function_impl *impl, nir_metadata preserved)
{
impl->valid_metadata &= preserved;
}