mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
pan: Add BUS_WIDTH query to pan_props
This commit is contained in:
parent
b6a8d664f7
commit
91e0f4c2a3
2 changed files with 9 additions and 0 deletions
|
|
@ -17,6 +17,13 @@ pan_query_l2_slices(const struct pan_kmod_dev_props *props)
|
|||
return ((props->mem_features >> 8) & 0xF) + 1;
|
||||
}
|
||||
|
||||
unsigned
|
||||
pan_query_bus_width(const struct pan_kmod_dev_props *props)
|
||||
{
|
||||
/* BUS_WIDTH is L2_FEATURES[31:24] log2 */
|
||||
return 1 << ((props->l2_features >> 24) & 0xF);
|
||||
}
|
||||
|
||||
struct pan_tiler_features
|
||||
pan_query_tiler_features(const struct pan_kmod_dev_props *props)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ struct pan_kmod_vm;
|
|||
|
||||
unsigned pan_query_l2_slices(const struct pan_kmod_dev_props *props);
|
||||
|
||||
unsigned pan_query_bus_width(const struct pan_kmod_dev_props *props);
|
||||
|
||||
struct pan_tiler_features
|
||||
pan_query_tiler_features(const struct pan_kmod_dev_props *props);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue