intel/blorp: Add option to emit packets that disable Mesh
If a driver doesn't support Mesh, don't emit anything. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13660>
This commit is contained in:
@@ -38,6 +38,10 @@ extern "C" {
|
||||
struct blorp_batch;
|
||||
struct blorp_params;
|
||||
|
||||
struct blorp_config {
|
||||
bool use_mesh_shading;
|
||||
};
|
||||
|
||||
struct blorp_context {
|
||||
void *driver_ctx;
|
||||
|
||||
@@ -56,10 +60,12 @@ struct blorp_context {
|
||||
uint32_t prog_data_size,
|
||||
uint32_t *kernel_out, void *prog_data_out);
|
||||
void (*exec)(struct blorp_batch *batch, const struct blorp_params *params);
|
||||
|
||||
struct blorp_config config;
|
||||
};
|
||||
|
||||
void blorp_init(struct blorp_context *blorp, void *driver_ctx,
|
||||
struct isl_device *isl_dev);
|
||||
struct isl_device *isl_dev, const struct blorp_config *config);
|
||||
void blorp_finish(struct blorp_context *blorp);
|
||||
|
||||
enum blorp_batch_flags {
|
||||
|
Reference in New Issue
Block a user