diff options
author | Rob Clark <robclark@freedesktop.org> | 2013-04-22 14:49:28 -0400 |
---|---|---|
committer | Rob Clark <robclark@freedesktop.org> | 2013-04-22 14:49:28 -0400 |
commit | 86709ba5373730a438602459e104bf0a9a49559d (patch) | |
tree | 447caaffdfeb2bea9adeb577388c90c3544444f3 /freedreno/freedreno_pipe.c | |
parent | 9768af201e9aba2093c80a8da3632fe9e4c044fe (diff) | |
download | libdrm-86709ba5373730a438602459e104bf0a9a49559d.tar.gz libdrm-86709ba5373730a438602459e104bf0a9a49559d.tar.bz2 libdrm-86709ba5373730a438602459e104bf0a9a49559d.zip |
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>
Diffstat (limited to 'freedreno/freedreno_pipe.c')
-rw-r--r-- | freedreno/freedreno_pipe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/freedreno/freedreno_pipe.c b/freedreno/freedreno_pipe.c index 49949ecc..1698c466 100644 --- a/freedreno/freedreno_pipe.c +++ b/freedreno/freedreno_pipe.c @@ -142,6 +142,9 @@ int fd_pipe_get_param(struct fd_pipe *pipe, enum fd_param_id param, case FD_DEVICE_ID: *value = pipe->devinfo.device_id; return 0; + case FD_GPU_ID: + *value = pipe->devinfo.gpu_id; + return 0; case FD_GMEM_SIZE: *value = pipe->devinfo.gmem_sizebytes; return 0; |