Commit 12099d51 authored by Anuj Phogat's avatar Anuj Phogat Committed by Marge Bot
Browse files

intel: Rename gen_10 to ver_10


Signed-off-by: Anuj Phogat's avatarAnuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Part-of: <mesa/mesa!10241>
parent dde7ac7f
......@@ -674,11 +674,11 @@ v3d_spec_load(const struct v3d_device_info *devinfo)
for (int i = 0; i < ARRAY_SIZE(genxml_files_table); i++) {
if (i != 0) {
assert(genxml_files_table[i - 1].gen_10 <
genxml_files_table[i].gen_10);
assert(genxml_files_table[i - 1].ver_10 <
genxml_files_table[i].ver_10);
}
if (genxml_files_table[i].gen_10 <= devinfo->ver) {
if (genxml_files_table[i].ver_10 <= devinfo->ver) {
text_offset = genxml_files_table[i].offset;
text_length = genxml_files_table[i].length;
}
......
......@@ -592,10 +592,10 @@ intel_spec_load(const struct intel_device_info *devinfo)
uint8_t *text_data = NULL;
uint32_t text_offset = 0, text_length = 0;
ASSERTED uint32_t total_length;
uint32_t gen_10 = devinfo->verx10;
uint32_t ver_10 = devinfo->verx10;
for (int i = 0; i < ARRAY_SIZE(genxml_files_table); i++) {
if (genxml_files_table[i].gen_10 == gen_10) {
if (genxml_files_table[i].ver_10 == ver_10) {
text_offset = genxml_files_table[i].offset;
text_length = genxml_files_table[i].length;
break;
......@@ -603,7 +603,7 @@ intel_spec_load(const struct intel_device_info *devinfo)
}
if (text_length == 0) {
fprintf(stderr, "unable to find gen (%u) data\n", gen_10);
fprintf(stderr, "unable to find gen (%u) data\n", ver_10);
return NULL;
}
......
......@@ -35,7 +35,7 @@ def main():
compress = zlib.compressobj()
print("static const struct {")
print(" uint32_t gen_10;")
print(" uint32_t ver_10;")
print(" uint32_t offset;")
print(" uint32_t length;")
print("} genxml_files_table[] = {")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment