summaryrefslogtreecommitdiffstats
path: root/src/intel/common
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-06-06 09:59:25 -0700
committerJason Ekstrand <[email protected]>2018-06-07 11:23:34 -0700
commit3b54dd87f707a0fa40a1555bee64aeb06a381c27 (patch)
tree8dd998c70301a0dc53fbcf0d2451e87587878aa6 /src/intel/common
parent778e2881a04817e8c10c7a400bf1e37414420194 (diff)
intel/isl: Add bounds-checking assertions for the format_info table
We follow the same convention as isl_format_get_layout in having two assertions to ensure that only valid formats are passed in. We also check against the array size of the table because some valid formats such as CCS formats will may be past the end of the table. This fixes some potential out-of-bounds array access even in valid cases. Cc: [email protected] Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/common')
0 files changed, 0 insertions, 0 deletions