From: Mike Blumenkrantz Date: Mon, 6 Mar 2023 19:53:53 +0000 (-0500) Subject: lavapipe: more small shader struct usage tweaks X-Git-Tag: upstream/23.3.3~11921 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b221f6c128544c76ffb60885fba4dfcab3228f3f;p=platform%2Fupstream%2Fmesa.git lavapipe: more small shader struct usage tweaks Reviewed-by: Dave Airlie Part-of: --- diff --git a/src/gallium/frontends/lavapipe/lvp_pipeline.c b/src/gallium/frontends/lavapipe/lvp_pipeline.c index 97cf18a..e284a56 100644 --- a/src/gallium/frontends/lavapipe/lvp_pipeline.c +++ b/src/gallium/frontends/lavapipe/lvp_pipeline.c @@ -516,10 +516,10 @@ lvp_shader_compile_to_ir(struct lvp_pipeline *pipeline, nir_function_impl *impl = nir_shader_get_entrypoint(nir); if (impl->ssa_alloc > 100) //skip for small shaders - pipeline->shaders[stage].inlines.must_inline = lvp_find_inlinable_uniforms(pipeline, nir); - pipeline->shaders[stage].pipeline_nir = ralloc(NULL, struct lvp_pipeline_nir); - pipeline->shaders[stage].pipeline_nir->nir = nir; - pipeline->shaders[stage].pipeline_nir->ref_cnt = 1; + shader->inlines.must_inline = lvp_find_inlinable_uniforms(pipeline, nir); + shader->pipeline_nir = ralloc(NULL, struct lvp_pipeline_nir); + shader->pipeline_nir->nir = nir; + shader->pipeline_nir->ref_cnt = 1; return VK_SUCCESS; }