aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/common/gen_device_info.h
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2016-09-22 14:58:11 +0300
committerLionel Landwerlin <[email protected]>2016-09-23 10:11:59 +0300
commitbc24590f0c579a2528fd94eb8d40dd4ce12eba29 (patch)
tree0ec5dbc71ec3aa551586005282200b184251d51f /src/intel/common/gen_device_info.h
parente60928f4c4bd4484821d83f2b16a910ea9f5f9d9 (diff)
intel/i965: make gen_device_info mutable
Make gen_device_info a mutable structure so we can update the fields that can be refined by querying the kernel (like subslices and EU numbers). This patch does not make any functional change, it just makes gen_get_device_info() fill a structure rather than returning a const pointer. Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/common/gen_device_info.h')
-rw-r--r--src/intel/common/gen_device_info.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/common/gen_device_info.h b/src/intel/common/gen_device_info.h
index 6b639d397a0..8b68a011ea4 100644
--- a/src/intel/common/gen_device_info.h
+++ b/src/intel/common/gen_device_info.h
@@ -143,5 +143,5 @@ struct gen_device_info
/** @} */
};
-const struct gen_device_info *gen_get_device_info(int devid);
+const bool gen_get_device_info(int devid, struct gen_device_info *devinfo);
const char *gen_get_device_name(int devid);