anv: bump ANV_MAX_QUEUE_FAMILIES

Now it's possible to overflow anv_physical_device.queue.families
and anv_device.decoder.

CID: 1520852

Fixes: 056b0cb87f ("anv: add video engine support in various places")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21278>
This commit is contained in:
Marcin Ślusarz 2023-02-13 10:09:35 +01:00 committed by Marge Bot
parent a157133380
commit 771f7c1d91
2 changed files with 2 additions and 2 deletions

View file

@ -769,7 +769,7 @@ anv_physical_device_init_queue_families(struct anv_physical_device *pdevice)
/* Increase count below when other families are added as a reminder to
* increase the ANV_MAX_QUEUE_FAMILIES value.
*/
STATIC_ASSERT(ANV_MAX_QUEUE_FAMILIES >= 3);
STATIC_ASSERT(ANV_MAX_QUEUE_FAMILIES >= 4);
} else {
/* Default to a single render queue */
pdevice->queue.families[family_count++] = (struct anv_queue_family) {

View file

@ -874,7 +874,7 @@ struct anv_queue_family {
enum intel_engine_class engine_class;
};
#define ANV_MAX_QUEUE_FAMILIES 3
#define ANV_MAX_QUEUE_FAMILIES 4
struct anv_memory_type {
/* Standard bits passed on to the client */