diff options
author | Jonathan Marek <[email protected]> | 2019-07-01 19:31:46 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-07-04 14:05:18 -0400 |
commit | f6a0d17abe854999b1ab984b4e94263b16ee0bc0 (patch) | |
tree | f0b6b37835f2faeef0dc0ddd6f4733a6d7567840 /src/etnaviv/drm | |
parent | e910acb3f23ee197b563e0af8a79bc7ff5ec6b49 (diff) |
etnaviv: detect v4 compression
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/etnaviv/drm')
-rw-r--r-- | src/etnaviv/drm/etnaviv_drmif.h | 1 | ||||
-rw-r--r-- | src/etnaviv/drm/etnaviv_gpu.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/etnaviv/drm/etnaviv_drmif.h b/src/etnaviv/drm/etnaviv_drmif.h index 5a6bef8d12d..675c32fe051 100644 --- a/src/etnaviv/drm/etnaviv_drmif.h +++ b/src/etnaviv/drm/etnaviv_drmif.h @@ -56,6 +56,7 @@ enum etna_param_id { ETNA_GPU_FEATURES_4 = 0x7, ETNA_GPU_FEATURES_5 = 0x8, ETNA_GPU_FEATURES_6 = 0x9, + ETNA_GPU_FEATURES_7 = 0xa, ETNA_GPU_STREAM_COUNT = 0x10, ETNA_GPU_REGISTER_MAX = 0x11, diff --git a/src/etnaviv/drm/etnaviv_gpu.c b/src/etnaviv/drm/etnaviv_gpu.c index f7efa0289f9..81d6f821677 100644 --- a/src/etnaviv/drm/etnaviv_gpu.c +++ b/src/etnaviv/drm/etnaviv_gpu.c @@ -112,6 +112,9 @@ int etna_gpu_get_param(struct etna_gpu *gpu, enum etna_param_id param, case ETNA_GPU_FEATURES_6: *value = get_param(dev, core, ETNAVIV_PARAM_GPU_FEATURES_6); return 0; + case ETNA_GPU_FEATURES_7: + *value = get_param(dev, core, ETNAVIV_PARAM_GPU_FEATURES_7); + return 0; case ETNA_GPU_STREAM_COUNT: *value = get_param(dev, core, ETNA_GPU_STREAM_COUNT); return 0; |