intel: Rename gen field in gen_device_info struct to ver
Commands used to do the changes: export SEARCH_PATH="src/intel src/gallium/drivers/iris src/mesa/drivers/dri/i965" grep -E "info\)*(.|->)gen" -rIl $SEARCH_PATH | xargs sed -ie "s/info\()*\)\(\.\|->\)gen/info\1\2ver/g" Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9936>
This commit is contained in:
@@ -226,7 +226,7 @@ static void do_flatshade_triangle( struct brw_sf_compile *c )
|
||||
if (c->key.primitive == BRW_SF_PRIM_UNFILLED_TRIS)
|
||||
return;
|
||||
|
||||
if (p->devinfo->gen == 5)
|
||||
if (p->devinfo->ver == 5)
|
||||
jmpi = 2;
|
||||
|
||||
nr = count_flatshaded_attributes(c);
|
||||
@@ -258,7 +258,7 @@ static void do_flatshade_line( struct brw_sf_compile *c )
|
||||
if (c->key.primitive == BRW_SF_PRIM_UNFILLED_TRIS)
|
||||
return;
|
||||
|
||||
if (p->devinfo->gen == 5)
|
||||
if (p->devinfo->ver == 5)
|
||||
jmpi = 2;
|
||||
|
||||
nr = count_flatshaded_attributes(c);
|
||||
|
Reference in New Issue
Block a user