Commit dc0c472b authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Another fix, maybe

parent 2a8b85d9
......@@ -3312,7 +3312,11 @@ midgard_compile_shader_nir(nir_shader *nir, midgard_program *program, bool is_bl
nir_foreach_variable(var, &nir->uniforms) {
if (glsl_get_base_type(var->type) == GLSL_TYPE_SAMPLER) continue;
unsigned length = glsl_get_length(var->type);
unsigned length = glsl_get_aoa_size(var->type);
if (!length) {
length = glsl_get_length(var->type);
}
if (!length) {
length = glsl_get_matrix_columns(var->type);
......
......@@ -996,7 +996,8 @@ panfrost_emit_vertex_data(struct panfrost_context *ctx)
attrs[i].stride = buf->stride;
attrs[i].size = buf->stride * (ctx->payload_vertex.draw_start + ctx->vertex_count);
/* TODO: The above calculation is wrong. Do it better. For now, force resources */
/* TODO: The above calculation is wrong and breaks, e.g.
* -bideas. Do it better. For now, force resources */
assert(!buf->is_user_buffer);
//attrs[i].size = buf->buffer.resource->width0 - buf->buffer_offset;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment