diff mbox

[i-g-t,3/3] debugger: No longer rely on compatability define in intel_bufmgr.h

Message ID 20180110042511.7551-3-rhyskidd@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Rhys Kidd Jan. 10, 2018, 4:25 a.m. UTC
Symbol rename from dri_* to drm_intel_* introduced a number of
compatability defines within intel_bufmgr.h.

Replace the old function with the new function, consistent with
the balance of this file.

Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
---
 debugger/eudb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ben Widawsky Jan. 16, 2018, 4:29 p.m. UTC | #1
On 18-01-09 23:25:11, Rhys Kidd wrote:
>Symbol rename from dri_* to drm_intel_* introduced a number of
>compatability defines within intel_bufmgr.h.
>
>Replace the old function with the new function, consistent with
>the balance of this file.
>
>Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
>---
> debugger/eudb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/debugger/eudb.c b/debugger/eudb.c
>index 8384950a..de37be52 100644
>--- a/debugger/eudb.c
>+++ b/debugger/eudb.c
>@@ -562,7 +562,7 @@ int main(int argc, char* argv[]) {
> 			if (fscanf(stdin, "%1d", &dh_handle) == 0)
> 				exit(1);
> 		}
>-		scratch_bo = intel_bo_gem_create_from_name(bufmgr, "scratch", dh_handle);
>+		scratch_bo = drm_intel_bo_gem_create_from_name(bufmgr, "scratch", dh_handle);
> 		if (scratch_bo == NULL) {
> 			fprintf(stderr, "Couldn't flink buffer\n");
> 			abort();

The series looks good to me, but keep in mind that we never actually made this
work after Sandybridge, and even there, nobody ever ran it but me :-)
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
diff mbox

Patch

diff --git a/debugger/eudb.c b/debugger/eudb.c
index 8384950a..de37be52 100644
--- a/debugger/eudb.c
+++ b/debugger/eudb.c
@@ -562,7 +562,7 @@  int main(int argc, char* argv[]) {
 			if (fscanf(stdin, "%1d", &dh_handle) == 0)
 				exit(1);
 		}
-		scratch_bo = intel_bo_gem_create_from_name(bufmgr, "scratch", dh_handle);
+		scratch_bo = drm_intel_bo_gem_create_from_name(bufmgr, "scratch", dh_handle);
 		if (scratch_bo == NULL) {
 			fprintf(stderr, "Couldn't flink buffer\n");
 			abort();