mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-29 08:49:26 +00:00
lib/drmtest: rip out drm_open_any_master
It's unused. Also most of our tests failed to ask for the right type of drm fd anyway. So it's imo better to just let them fall over when they don't get master but want it, like they already do today. This also allows us to garbage-collect the master parameter to drm_get_card and associated code. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+2
-2
@@ -570,7 +570,7 @@ static void eat_error_state(struct test_output *o)
|
||||
static const char data[] = "";
|
||||
static char tmp[128];
|
||||
char fname[FILENAME_MAX];
|
||||
int card_index = drm_get_card(0);
|
||||
int card_index = drm_get_card();
|
||||
int fd;
|
||||
ssize_t r;
|
||||
|
||||
@@ -624,7 +624,7 @@ static void hang_gpu(struct test_output *o)
|
||||
static const char dfs_entry[] = "i915_ring_stop";
|
||||
static const char data[] = "0xf";
|
||||
char fname[FILENAME_MAX];
|
||||
int card_index = drm_get_card(0);
|
||||
int card_index = drm_get_card();
|
||||
int fd;
|
||||
ssize_t r;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user