pan/bi: Copy blend shader info from compile_inputs
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7151>
This commit is contained in:
parent
6c61f0b8e5
commit
111cf7f0e8
|
@ -1651,6 +1651,9 @@ bifrost_compile_shader_nir(nir_shader *nir, panfrost_program *program,
|
|||
ctx->nir = nir;
|
||||
ctx->stage = nir->info.stage;
|
||||
ctx->quirks = bifrost_get_quirks(inputs->gpu_id);
|
||||
ctx->is_blend = inputs->is_blend;
|
||||
ctx->blend_desc = inputs->blend.bifrost_blend_desc;
|
||||
memcpy(ctx->blend_constants, inputs->blend.constants, sizeof(ctx->blend_constants));
|
||||
list_inithead(&ctx->blocks);
|
||||
|
||||
/* Lower gl_Position pre-optimisation, but after lowering vars to ssa
|
||||
|
|
|
@ -445,6 +445,15 @@ typedef struct {
|
|||
struct panfrost_sysvals sysvals;
|
||||
uint32_t quirks;
|
||||
|
||||
/* Is internally a blend shader? Depends on stage == FRAGMENT */
|
||||
bool is_blend;
|
||||
|
||||
/* Blend constants */
|
||||
float blend_constants[4];
|
||||
|
||||
/* Blend tile buffer conversion desc */
|
||||
uint64_t blend_desc;
|
||||
|
||||
/* During NIR->BIR */
|
||||
nir_function_impl *impl;
|
||||
bi_block *current_block;
|
||||
|
|
Loading…
Reference in New Issue