freedreno: add gpu-id property
Gallium driver will need to query this to figure out whether to load the a2xx or a3xx driver. Signed-off-by: Rob Clark <robclark@freedesktop.org>main
parent
9768af201e
commit
86709ba537
|
@ -48,6 +48,7 @@ enum fd_pipe_id {
|
||||||
enum fd_param_id {
|
enum fd_param_id {
|
||||||
FD_DEVICE_ID,
|
FD_DEVICE_ID,
|
||||||
FD_GMEM_SIZE,
|
FD_GMEM_SIZE,
|
||||||
|
FD_GPU_ID,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* bo flags: */
|
/* bo flags: */
|
||||||
|
|
|
@ -142,6 +142,9 @@ int fd_pipe_get_param(struct fd_pipe *pipe, enum fd_param_id param,
|
||||||
case FD_DEVICE_ID:
|
case FD_DEVICE_ID:
|
||||||
*value = pipe->devinfo.device_id;
|
*value = pipe->devinfo.device_id;
|
||||||
return 0;
|
return 0;
|
||||||
|
case FD_GPU_ID:
|
||||||
|
*value = pipe->devinfo.gpu_id;
|
||||||
|
return 0;
|
||||||
case FD_GMEM_SIZE:
|
case FD_GMEM_SIZE:
|
||||||
*value = pipe->devinfo.gmem_sizebytes;
|
*value = pipe->devinfo.gmem_sizebytes;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue