panfrost/lima/panvk: Define a common vendor ID

Rusticl reports `CL_DEVICE_VENDOR_ID` using the `vendor_id` property
defined in Panfrost. The value is not set so a `0` is reported
instead.

Initialise the value to `0x13B5`, which is Arm's PCI vendor ID.

Add the definition in `lib/pan_props.h` so it can be shared with
Gallium Lima, Panfrost and PanVK.

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38283>
This commit is contained in:
Ahmed Hesham
2025-11-06 14:01:20 +00:00
committed by Marge Bot
parent e91832739b
commit 6901bb0c6c
4 changed files with 7 additions and 2 deletions

View File

@@ -45,6 +45,8 @@
#include "xf86drm.h"
#include "pan_props.h"
int lima_plb_max_blk = 0;
int lima_plb_pp_stream_cache_size = 0;
@@ -168,7 +170,7 @@ lima_init_screen_caps(struct pipe_screen *screen)
caps->max_texture_3d_levels =
caps->max_texture_cube_levels = LIMA_MAX_MIP_LEVELS;
caps->vendor_id = 0x13B5;
caps->vendor_id = ARM_VENDOR_ID;
caps->video_memory = 0;

View File

@@ -681,6 +681,8 @@ panfrost_init_screen_caps(struct panfrost_screen *screen)
u_init_pipe_screen_caps(&screen->base, 1);
caps->vendor_id = ARM_VENDOR_ID;
struct panfrost_device *dev = &screen->dev;
/* Our GL 3.x implementation is WIP */

View File

@@ -38,6 +38,8 @@ struct pan_kmod_dev;
struct pan_kmod_dev_props;
struct pan_kmod_vm;
#define ARM_VENDOR_ID 0x13B5
unsigned pan_query_l2_slices(const struct pan_kmod_dev_props *props);
struct pan_tiler_features

View File

@@ -29,7 +29,6 @@
#include "pan_props.h"
#include "util/pan_ir.h"
#define ARM_VENDOR_ID 0x13b5
/* We reserve one ubo for push constant, one for sysvals and one per-set for the
* descriptor metadata */
#define RESERVED_UBO_COUNT 6