summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_screen.c
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2017-04-14 09:39:52 +0200
committerChristian Gmeiner <[email protected]>2017-04-15 00:34:03 +0200
commit9e4d049f402af93dafe55865dcfd87c96659b7ba (patch)
treea523cbdceaf25f023bddbf5d93dfa80bc83d7f38 /src/gallium/drivers/etnaviv/etnaviv_screen.c
parentdda956340ce9f7d04866eb6909455f24fae94724 (diff)
etnaviv: Add chipMinorFeatures4 and 5
Request chipMinorFeatures bitfields 4 and 5 from the drm driver. Signed-off-by: Wladimir J. van der Laan <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_screen.c')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_screen.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c
index 55d22c6abac..d4e4c7f6999 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_screen.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c
@@ -800,6 +800,18 @@ etna_screen_create(struct etna_device *dev, struct etna_gpu *gpu,
}
screen->features[4] = val;
+ if (etna_gpu_get_param(screen->gpu, ETNA_GPU_FEATURES_5, &val)) {
+ DBG("could not get ETNA_GPU_FEATURES_5");
+ goto fail;
+ }
+ screen->features[5] = val;
+
+ if (etna_gpu_get_param(screen->gpu, ETNA_GPU_FEATURES_6, &val)) {
+ DBG("could not get ETNA_GPU_FEATURES_6");
+ goto fail;
+ }
+ screen->features[6] = val;
+
if (!etna_get_specs(screen))
goto fail;