summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-10-14 08:29:16 +0800
committerChia-I Wu <[email protected]>2014-10-14 08:54:25 +0800
commit4e2cf84b1f5fd9f52dd1a12947a405a25d1e2137 (patch)
treefe05919f96266e26ee65efbd79ef28770ad13355 /src/gallium
parent615bbf0ca641d356d975f12a5491f2fd56549ed8 (diff)
ilo: clear writer pointer after unmapping
It does not look like an issue now but it is good to be future proof. Spotted by Courtney Goeltzenleuchter. Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/ilo/ilo_builder_decode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_builder_decode.c b/src/gallium/drivers/ilo/ilo_builder_decode.c
index 470c1ae0989..922acc00cc1 100644
--- a/src/gallium/drivers/ilo/ilo_builder_decode.c
+++ b/src/gallium/drivers/ilo/ilo_builder_decode.c
@@ -529,6 +529,7 @@ ilo_builder_writer_decode_items(struct ilo_builder *builder,
}
intel_bo_unmap(writer->bo);
+ writer->ptr = NULL;
}
static void