mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 16:18:06 +02:00
gallium: remove pipe_grid_info::pc and PIPE_SHADER_IR_NATIVE
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34623>
This commit is contained in:
parent
a990ada276
commit
6730b8b228
8 changed files with 1 additions and 18 deletions
|
|
@ -1164,7 +1164,6 @@ void trace_dump_grid_info(const struct pipe_grid_info *state)
|
|||
|
||||
trace_dump_struct_begin("pipe_grid_info");
|
||||
|
||||
trace_dump_member(uint, state, pc);
|
||||
trace_dump_member(ptr, state, input);
|
||||
trace_dump_member(uint, state, variable_shared_mem);
|
||||
|
||||
|
|
|
|||
|
|
@ -976,7 +976,6 @@ void util_dump_grid_info(FILE *stream, const struct pipe_grid_info *state)
|
|||
|
||||
util_dump_struct_begin(stream, "pipe_grid_info");
|
||||
|
||||
util_dump_member(stream, uint, state, pc);
|
||||
util_dump_member(stream, ptr, state, input);
|
||||
util_dump_member(stream, uint, state, work_dim);
|
||||
|
||||
|
|
|
|||
|
|
@ -268,7 +268,6 @@ nv50_hw_sm_end_query(struct nv50_context *nv50, struct nv50_hw_query *hq)
|
|||
info.block[i] = block[i];
|
||||
info.grid[i] = grid[i];
|
||||
}
|
||||
info.pc = 0;
|
||||
nv50_launch_grid_with_input(pipe, &info, input, 8);
|
||||
pipe->bind_compute_state(pipe, old);
|
||||
|
||||
|
|
|
|||
|
|
@ -2584,7 +2584,6 @@ nvc0_hw_sm_end_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq)
|
|||
info.block[i] = block[i];
|
||||
info.grid[i] = grid[i];
|
||||
}
|
||||
info.pc = 0;
|
||||
pipe->launch_grid(pipe, &info);
|
||||
pipe->bind_compute_state(pipe, old);
|
||||
|
||||
|
|
|
|||
|
|
@ -467,7 +467,7 @@ static void evergreen_launch_grid(struct pipe_context *ctx,
|
|||
{
|
||||
struct r600_context *rctx = (struct r600_context *)ctx;
|
||||
|
||||
COMPUTE_DBG(rctx->screen, "*** evergreen_launch_grid: pc = %u\n", info->pc);
|
||||
COMPUTE_DBG(rctx->screen, "*** evergreen_launch_grid\n");
|
||||
|
||||
compute_emit_cs(rctx, info);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -156,10 +156,6 @@ static void *si_create_compute_state(struct pipe_context *ctx, const struct pipe
|
|||
{
|
||||
struct si_context *sctx = (struct si_context *)ctx;
|
||||
struct si_screen *sscreen = (struct si_screen *)ctx->screen;
|
||||
|
||||
if (cso->ir_type == PIPE_SHADER_IR_NATIVE)
|
||||
return NULL;
|
||||
|
||||
struct si_compute *program = CALLOC_STRUCT(si_compute);
|
||||
struct si_shader_selector *sel = &program->sel;
|
||||
|
||||
|
|
|
|||
|
|
@ -750,7 +750,6 @@ enum pipe_endian
|
|||
enum pipe_shader_ir
|
||||
{
|
||||
PIPE_SHADER_IR_TGSI = 0,
|
||||
PIPE_SHADER_IR_NATIVE,
|
||||
PIPE_SHADER_IR_NIR,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -302,7 +302,6 @@ struct pipe_shader_state
|
|||
/* TODO move tokens into union. */
|
||||
const struct tgsi_token *tokens;
|
||||
union {
|
||||
void *native;
|
||||
struct nir_shader *nir;
|
||||
} ir;
|
||||
struct pipe_stream_output_info stream_output;
|
||||
|
|
@ -941,13 +940,6 @@ struct pipe_blit_info
|
|||
*/
|
||||
struct pipe_grid_info
|
||||
{
|
||||
/**
|
||||
* For drivers that use PIPE_SHADER_IR_NATIVE as their preferred IR, this
|
||||
* value will be the index of the kernel in the opencl.kernels metadata
|
||||
* list.
|
||||
*/
|
||||
uint32_t pc;
|
||||
|
||||
/**
|
||||
* Will be used to initialize the INPUT resource, and it should point to a
|
||||
* buffer of at least pipe_compute_state::req_input_mem bytes.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue