anv/pipeline: Get rid of the kernel pointer fields
Now that we have anv_shader_bin, they're completely redundant with other information we have in the pipeline. For vertex shaders, we also go through way too much work to put the offset in one or the other field and then look at which one we put it in later. Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
This commit is contained in:
@@ -1364,10 +1364,12 @@ flush_compute_descriptor_set(struct anv_cmd_buffer *cmd_buffer)
|
||||
|
||||
const uint32_t slm_size = encode_slm_size(GEN_GEN, prog_data->total_shared);
|
||||
|
||||
const struct anv_shader_bin *cs_bin =
|
||||
pipeline->shaders[MESA_SHADER_COMPUTE];
|
||||
struct anv_state state =
|
||||
anv_state_pool_emit(&device->dynamic_state_pool,
|
||||
GENX(INTERFACE_DESCRIPTOR_DATA), 64,
|
||||
.KernelStartPointer = pipeline->cs_simd,
|
||||
.KernelStartPointer = cs_bin->kernel.offset,
|
||||
.BindingTablePointer = surfaces.offset,
|
||||
.BindingTableEntryCount = 0,
|
||||
.SamplerStatePointer = samplers.offset,
|
||||
|
Reference in New Issue
Block a user