aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/pandecode
diff options
context:
space:
mode:
authorTomeu Vizoso <[email protected]>2020-04-27 16:09:57 +0200
committerTomeu Vizoso <[email protected]>2020-04-30 16:27:42 +0200
commit03963febeffadefc4f47adaf0bbd3618d5692b25 (patch)
tree9d8226350ea98b2658297a79615c80130126b492 /src/panfrost/pandecode
parentbc11deb86d8bc037d842a04f8782461a5472ecf1 (diff)
pan/decode: Check for correct unknown field
As reported by Coverity: >>> CID 1462606: Incorrect expression (COPY_PASTE_ERROR) >>> "unk1" in "s->unk1" looks like a copy-paste error. Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4724>
Diffstat (limited to 'src/panfrost/pandecode')
-rw-r--r--src/panfrost/pandecode/decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c
index faa01cd7517..32effb30f18 100644
--- a/src/panfrost/pandecode/decode.c
+++ b/src/panfrost/pandecode/decode.c
@@ -2422,7 +2422,7 @@ pandecode_samplers(mali_ptr samplers, unsigned sampler_count, int job_no, bool i
pandecode_prop("wrap_t = %s", pandecode_wrap_mode(s->wrap_t));
pandecode_prop("wrap_r = %s", pandecode_wrap_mode(s->wrap_r));
- if (s->unk1 != 0x8) {
+ if (s->unk8 != 0x8) {
pandecode_msg("XXX: unk8 tripped\n");
pandecode_prop("unk8 = 0x%x", s->unk8);
}