Lines Matching refs:fbfetch
470 nir_variable *fbfetch = nir_variable_clone(data, b->shader); in lower_fbfetch_instr() local
474 fbfetch->data.image.format = 0; in lower_fbfetch_instr()
475 fbfetch->data.index = 0; /* fix this if more than 1 fbfetch target is supported */ in lower_fbfetch_instr()
476 fbfetch->data.mode = nir_var_uniform; in lower_fbfetch_instr()
477 fbfetch->data.binding = ZINK_FBFETCH_BINDING; in lower_fbfetch_instr()
478 fbfetch->type = glsl_image_type(GLSL_SAMPLER_DIM_SUBPASS, false, GLSL_TYPE_FLOAT); in lower_fbfetch_instr()
479 nir_shader_add_variable(b->shader, fbfetch); in lower_fbfetch_instr()
480 nir_ssa_def *deref = &nir_build_deref_var(b, fbfetch)->dest.ssa; in lower_fbfetch_instr()
489 lower_fbfetch(nir_shader *shader, nir_variable **fbfetch) in lower_fbfetch() argument
493 *fbfetch = var; in lower_fbfetch()
497 assert(*fbfetch); in lower_fbfetch()
498 if (!*fbfetch) in lower_fbfetch()
500 …return nir_shader_instructions_pass(shader, lower_fbfetch_instr, nir_metadata_dominance, *fbfetch); in lower_fbfetch()
865 nir_variable *fbfetch = NULL; in zink_shader_compile() local
866 NIR_PASS_V(nir, lower_fbfetch, &fbfetch); in zink_shader_compile()
868 fbfetch->data.mode = nir_var_shader_temp; in zink_shader_compile()