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

intel: Rename since_gen to since ver



export SEARCH_PATH="src/intel src/gallium/drivers/iris src/mesa/drivers/dri/i965
grep -E "since_gen" -rIl $SEARCH_PATH | xargs sed -ie "s/since_gen/since_ver/g"
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 abf0bf9e
......@@ -346,12 +346,12 @@ static const struct brw_image_format brw_image_formats[] = {
static const struct {
uint64_t modifier;
unsigned since_gen;
unsigned since_ver;
} supported_modifiers[] = {
{ .modifier = DRM_FORMAT_MOD_LINEAR , .since_gen = 1 },
{ .modifier = I915_FORMAT_MOD_X_TILED , .since_gen = 1 },
{ .modifier = I915_FORMAT_MOD_Y_TILED , .since_gen = 6 },
{ .modifier = I915_FORMAT_MOD_Y_TILED_CCS , .since_gen = 9 },
{ .modifier = DRM_FORMAT_MOD_LINEAR , .since_ver = 1 },
{ .modifier = I915_FORMAT_MOD_X_TILED , .since_ver = 1 },
{ .modifier = I915_FORMAT_MOD_Y_TILED , .since_ver = 6 },
{ .modifier = I915_FORMAT_MOD_Y_TILED_CCS , .since_ver = 9 },
};
static bool
......@@ -396,7 +396,7 @@ modifier_is_supported(const struct intel_device_info *devinfo,
if (supported_modifiers[i].modifier != modifier)
continue;
return supported_modifiers[i].since_gen <= devinfo->ver;
return supported_modifiers[i].since_ver <= devinfo->ver;
}
return false;
......
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