i965/perf: fix config registration when uploading to kernel
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 22 Mar 2018 16:02:11 +0000 (16:02 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 22 Mar 2018 18:21:57 +0000 (18:21 +0000)
commit1603ce1921a511f128025a49d055283440376231
treefe5cbc70a477bde0c52a03efd111d27b68bc9082
parenta8b846bccd9eeb976b9f45a6c7a19cba4b8b9eef
i965/perf: fix config registration when uploading to kernel

When registring configurations to the kernel for the first time, we
run into an issue where the id number is not properly set (we're using
the wrong variable). As a result when trying to use that id later on,
we get an error.

This issue manifest itself the first time you use frameretrace after
reboot, subsequent runs are fine.

Fixes: 27ee83eaf7e9 ("i965: perf: add support for userspace configurations")
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_performance_query.c