intel/decoder: Make get_state_size take a full 64-bit address and a base
[mesa.git] / src / intel / common / gen_decoder.h
index 153e48d8e4944d338ba90ed06b89852b56076d54..0b770ee36913a47f43946b5d6d5f07299c2d6719 100644 (file)
@@ -231,7 +231,8 @@ struct gen_batch_decode_ctx {
     */
    struct gen_batch_decode_bo (*get_bo)(void *user_data, bool ppgtt, uint64_t address);
    unsigned (*get_state_size)(void *user_data,
-                              uint32_t offset_from_dynamic_state_base_addr);
+                              uint64_t address,
+                              uint64_t base_address);
    void *user_data;
 
    FILE *fp;
@@ -259,7 +260,8 @@ void gen_batch_decode_ctx_init(struct gen_batch_decode_ctx *ctx,
                                                                     bool,
                                                                     uint64_t),
 
-                               unsigned (*get_state_size)(void *, uint32_t),
+                               unsigned (*get_state_size)(void *, uint64_t,
+                                                          uint64_t),
                                void *user_data);
 void gen_batch_decode_ctx_finish(struct gen_batch_decode_ctx *ctx);