i915: Drop context fields specific to 965+ chipsets.
authorEric Anholt <eric@anholt.net>
Thu, 20 Jun 2013 22:04:54 +0000 (15:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 28 Jun 2013 20:35:24 +0000 (13:35 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i915/intel_context.c
src/mesa/drivers/dri/i915/intel_context.h

index 25e8a17de14733ccc96779b903963005e98f6273..c34c60141b5b6277f28d5d8edcbdb6ab274d6c5a 100644 (file)
@@ -473,25 +473,8 @@ intelInitContext(struct intel_context *intel,
    intel->gen = intelScreen->gen;
 
    const int devID = intelScreen->deviceID;
-   if (IS_SNB_GT1(devID) || IS_IVB_GT1(devID) || IS_HSW_GT1(devID))
-      intel->gt = 1;
-   else if (IS_SNB_GT2(devID) || IS_IVB_GT2(devID) || IS_HSW_GT2(devID))
-      intel->gt = 2;
-   else if (IS_HSW_GT3(devID))
-      intel->gt = 3;
-   else
-      intel->gt = 0;
-
-   if (IS_HASWELL(devID)) {
-      intel->is_haswell = true;
-   } else if (IS_BAYTRAIL(devID)) {
-      intel->is_baytrail = true;
-      intel->gt = 1;
-   } else if (IS_G4X(devID)) {
-      intel->is_g4x = true;
-   } else if (IS_945(devID)) {
-      intel->is_945 = true;
-   }
+
+   intel->is_945 = IS_945(devID);
 
    intel->has_swizzling = intel->intelScreen->hw_has_swizzling;
 
index 033ab476826fbf9aca60a37ef0a3483dcaee8c1e..50ddf54977d1e1e62a89f19988464058e8937dde 100644 (file)
@@ -171,28 +171,6 @@ struct intel_context
       void (*annotate_aub)(struct intel_context *intel);
       bool (*render_target_supported)(struct intel_context *intel,
                                      struct gl_renderbuffer *rb);
-
-      /**
-       * Surface state operations (i965+ only)
-       * \{
-       */
-      void (*update_texture_surface)(struct gl_context *ctx,
-                                     unsigned unit,
-                                     uint32_t *binding_table,
-                                     unsigned surf_index);
-      void (*update_renderbuffer_surface)(struct brw_context *brw,
-                                         struct gl_renderbuffer *rb,
-                                         bool layered,
-                                         unsigned unit);
-      void (*update_null_renderbuffer_surface)(struct brw_context *brw,
-                                              unsigned unit);
-      void (*create_constant_surface)(struct brw_context *brw,
-                                     drm_intel_bo *bo,
-                                     uint32_t offset,
-                                     uint32_t size,
-                                     uint32_t *out_offset,
-                                      bool dword_pitch);
-      /** \} */
    } vtbl;
 
    GLbitfield Fallback;  /**< mask of INTEL_FALLBACK_x bits */
@@ -205,16 +183,9 @@ struct intel_context
     * Generation number of the hardware: 2 is 8xx, 3 is 9xx pre-965, 4 is 965.
     */
    int gen;
-   int gt;
-   bool is_haswell;
-   bool is_baytrail;
-   bool is_g4x;
    bool is_945;
-   bool has_llc;
    bool has_swizzling;
 
-   int urb_size;
-
    drm_intel_context *hw_ctx;
 
    struct intel_batchbuffer batch;