i965: Stop using legacy dri_bufmgr_* and intel_* names.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 21 Mar 2017 21:46:39 +0000 (14:46 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 30 Mar 2017 18:16:34 +0000 (11:16 -0700)
Eric renamed these from dri_bufmgr_* and intel_bufmgr_* to drm_intel_*
in libdrm commit 4b9826408f65976a1a13387beda748b65e03ec52, circa 2008,
but we've been using the legacy names this whole time.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_compute.c
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/genX_blorp_exec.c
src/mesa/drivers/dri/i965/intel_batchbuffer.c
src/mesa/drivers/dri/i965/intel_batchbuffer.h
src/mesa/drivers/dri/i965/intel_blit.c
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/i965/intel_screen.h

index 21da2ad17b5f64902ee17f45bbf729efbaaa13c3..c0044818011a30b4a717a4b306fd36c9b56574d2 100644 (file)
@@ -212,7 +212,7 @@ brw_dispatch_compute_common(struct gl_context *ctx)
 
    brw->no_batch_wrap = false;
 
-   if (dri_bufmgr_check_aperture_space(&brw->batch.bo, 1)) {
+   if (drm_intel_bufmgr_check_aperture_space(&brw->batch.bo, 1)) {
       if (!fail_next) {
          intel_batchbuffer_reset_to_saved(brw);
          intel_batchbuffer_flush(brw);
index 2fafee07674ff2faec8281811ebb5e9435e19834..81c05446520ebce5bc49d3eba97e86b9c0305018 100644 (file)
@@ -891,7 +891,7 @@ brw_process_driconf_options(struct brw_context *brw)
    case DRI_CONF_BO_REUSE_DISABLED:
       break;
    case DRI_CONF_BO_REUSE_ALL:
-      intel_bufmgr_gem_enable_reuse(brw->bufmgr);
+      drm_intel_bufmgr_gem_enable_reuse(brw->bufmgr);
       break;
    }
 
index a042e4b2ff66bbbf9f6a295df7e8bf26cc5715ec..1d571107fa0f85a81fb46fdba34541f5ec80a8eb 100644 (file)
@@ -656,7 +656,7 @@ struct brw_context
 
    } vtbl;
 
-   dri_bufmgr *bufmgr;
+   drm_intel_bufmgr *bufmgr;
 
    drm_intel_context *hw_ctx;
 
index b7860ae26e7c56a551ba21ce5bcec90c8c4f613b..1828a6c5a6d656f03090caf9a6c797f774c6fd9d 100644 (file)
@@ -601,7 +601,7 @@ retry:
 
       brw->no_batch_wrap = false;
 
-      if (dri_bufmgr_check_aperture_space(&brw->batch.bo, 1)) {
+      if (drm_intel_bufmgr_check_aperture_space(&brw->batch.bo, 1)) {
          if (!fail_next) {
             intel_batchbuffer_reset_to_saved(brw);
             intel_batchbuffer_flush(brw);
index b8dcf9fd3b540525571f2162d6fb2fe382bb5247..f9334ee13d7af29cb5b797603bba32e200f9c765 100644 (file)
@@ -232,7 +232,7 @@ retry:
     * map all the BOs into the GPU at batch exec time later.  If so, flush the
     * batch and try again with nothing else in the batch.
     */
-   if (dri_bufmgr_check_aperture_space(&brw->batch.bo, 1)) {
+   if (drm_intel_bufmgr_check_aperture_space(&brw->batch.bo, 1)) {
       if (!check_aperture_failed_once) {
          check_aperture_failed_once = true;
          intel_batchbuffer_reset_to_saved(brw);
index 1599a2c2a53097c09d0d4535a79c7b521808f8e5..4c3b7dcc411982a7c416f141a977b62a5356f7da 100644 (file)
@@ -39,7 +39,8 @@
 #include <i915_drm.h>
 
 static void
-intel_batchbuffer_reset(struct intel_batchbuffer *batch, dri_bufmgr *bufmgr,
+intel_batchbuffer_reset(struct intel_batchbuffer *batch,
+                        drm_intel_bufmgr *bufmgr,
                         bool has_llc);
 
 static bool
@@ -55,7 +56,8 @@ uint_key_hash(const void *key)
 }
 
 void
-intel_batchbuffer_init(struct intel_batchbuffer *batch, dri_bufmgr *bufmgr,
+intel_batchbuffer_init(struct intel_batchbuffer *batch,
+                       drm_intel_bufmgr *bufmgr,
                        bool has_llc)
 {
    intel_batchbuffer_reset(batch, bufmgr, has_llc);
@@ -73,7 +75,8 @@ intel_batchbuffer_init(struct intel_batchbuffer *batch, dri_bufmgr *bufmgr,
 }
 
 static void
-intel_batchbuffer_reset(struct intel_batchbuffer *batch, dri_bufmgr *bufmgr,
+intel_batchbuffer_reset(struct intel_batchbuffer *batch,
+                        drm_intel_bufmgr *bufmgr,
                         bool has_llc)
 {
    if (batch->last_bo != NULL) {
index cf545ec1886748d3e072cf12f9c06a8f777f8358..9d5e8ce7e9c7f3714c43940fafc45c114b75dd67 100644 (file)
@@ -38,7 +38,8 @@ extern "C" {
 
 struct intel_batchbuffer;
 
-void intel_batchbuffer_init(struct intel_batchbuffer *batch, dri_bufmgr *bufmgr,
+void intel_batchbuffer_init(struct intel_batchbuffer *batch,
+                            drm_intel_bufmgr *bufmgr,
                             bool has_llc);
 void intel_batchbuffer_free(struct intel_batchbuffer *batch);
 void intel_batchbuffer_save_state(struct brw_context *brw);
index ca24abef3b294fd15e5e93a59c3041c4e0e438a9..a6140e7df2f1e91a7b69494d3a3ec02ec05f79b0 100644 (file)
@@ -516,7 +516,7 @@ intelEmitCopyBlit(struct brw_context *brw,
        aper_array[1] = dst_buffer;
        aper_array[2] = src_buffer;
 
-       if (dri_bufmgr_check_aperture_space(aper_array, 3) != 0) {
+       if (drm_intel_bufmgr_check_aperture_space(aper_array, 3) != 0) {
            intel_batchbuffer_flush(brw);
            pass++;
        } else
index bc998abce1c8c6a35181e59452b2e8926a77d89a..811a9c5a867f5063e2b6259d3243dc15da359f06 100644 (file)
@@ -1103,7 +1103,7 @@ intelDestroyScreen(__DRIscreen * sPriv)
 {
    struct intel_screen *screen = sPriv->driverPrivate;
 
-   dri_bufmgr_destroy(screen->bufmgr);
+   drm_intel_bufmgr_destroy(screen->bufmgr);
    driDestroyOptionInfo(&screen->optionCache);
 
    ralloc_free(screen);
@@ -1265,7 +1265,7 @@ intel_init_bufmgr(struct intel_screen *screen)
 
    screen->no_hw = getenv("INTEL_NO_HW") != NULL;
 
-   screen->bufmgr = intel_bufmgr_gem_init(dri_screen->fd, BATCH_SZ);
+   screen->bufmgr = drm_intel_bufmgr_gem_init(dri_screen->fd, BATCH_SZ);
    if (screen->bufmgr == NULL) {
       fprintf(stderr, "[%s:%u] Error initializing buffer manager.\n",
              __func__, __LINE__);
@@ -1765,7 +1765,7 @@ __DRIconfig **intelInitScreen2(__DRIscreen *dri_screen)
    brw_process_intel_debug_variable();
 
    if (INTEL_DEBUG & DEBUG_BUFMGR)
-      dri_bufmgr_set_debug(screen->bufmgr, true);
+      drm_intel_bufmgr_set_debug(screen->bufmgr, true);
 
    if ((INTEL_DEBUG & DEBUG_SHADER_TIME) && devinfo->gen < 7) {
       fprintf(stderr,
index d8cda58c96438b42a185e263bf1e8ed22eb171ef..18a0bd97dd7630249bd1e2d357de9fba71fbb472 100644 (file)
@@ -72,7 +72,7 @@ struct intel_screen
 #define KERNEL_ALLOWS_HSW_SCRATCH1_AND_ROW_CHICKEN3 (1<<3)
 #define KERNEL_ALLOWS_COMPUTE_DISPATCH              (1<<4)
 
-   dri_bufmgr *bufmgr;
+   drm_intel_bufmgr *bufmgr;
 
    /**
     * A unique ID for shader programs.