mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
intel/blorp: prepare for usage of mi_builder.h
In the next patch we will use mi_builder.h from blorp code, so this commit prepares the terrain for that by adding the necessary definitions that the header requires. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
parent
25fe0719c5
commit
ae1b5ca198
3 changed files with 33 additions and 0 deletions
|
|
@ -534,3 +534,10 @@ blorp_emit_post_draw(struct blorp_batch *blorp_batch, const struct blorp_params
|
|||
genX(maybe_emit_breakpoint)(batch, false);
|
||||
blorp_measure_end(blorp_batch, params);
|
||||
}
|
||||
|
||||
static bool *
|
||||
blorp_get_write_fencing_status(struct blorp_batch *blorp_batch)
|
||||
{
|
||||
struct iris_batch *batch = blorp_batch->driver_batch;
|
||||
return &batch->write_fence_status;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -148,6 +148,9 @@ brw_blorp_get_urb_length(const struct brw_fs_prog_data *prog_data)
|
|||
return MAX2((prog_data->num_varying_inputs + 1) / 2, 1);
|
||||
}
|
||||
|
||||
static bool *
|
||||
blorp_get_write_fencing_status(struct blorp_batch *batch);
|
||||
|
||||
/***** BEGIN blorp_exec implementation ******/
|
||||
|
||||
static uint64_t
|
||||
|
|
@ -164,9 +167,25 @@ _blorp_combine_address(struct blorp_batch *batch, void *location,
|
|||
#define __gen_address_type struct blorp_address
|
||||
#define __gen_user_data struct blorp_batch
|
||||
#define __gen_combine_address _blorp_combine_address
|
||||
#define __gen_get_write_fencing_status(b) blorp_get_write_fencing_status(b)
|
||||
#define __gen_get_batch_dwords(b, d) blorp_emit_dwords((b), (d))
|
||||
|
||||
static inline struct blorp_address
|
||||
__gen_address_offset(struct blorp_address addr, uint64_t offset)
|
||||
{
|
||||
addr.offset += offset;
|
||||
return addr;
|
||||
}
|
||||
|
||||
static inline struct blorp_address
|
||||
__gen_get_batch_address(struct blorp_batch *batch, void *location)
|
||||
{
|
||||
UNREACHABLE("Not supported by blorp");
|
||||
}
|
||||
|
||||
#include "genxml/genX_pack.h"
|
||||
#include "common/intel_genX_state_brw.h"
|
||||
#include "common/mi_builder.h"
|
||||
|
||||
#define _blorp_cmd_length(cmd) cmd ## _length
|
||||
#define _blorp_cmd_length_bias(cmd) cmd ## _length_bias
|
||||
|
|
|
|||
|
|
@ -596,3 +596,10 @@ genX(blorp_init_dynamic_states)(struct blorp_context *context)
|
|||
{
|
||||
blorp_init_dynamic_states(context);
|
||||
}
|
||||
|
||||
static bool *
|
||||
blorp_get_write_fencing_status(struct blorp_batch *blorp_batch)
|
||||
{
|
||||
struct anv_cmd_buffer *cmd_buffer = blorp_batch->driver_batch;
|
||||
return &cmd_buffer->batch.write_fence_status;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue