mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
ac/nir,radeonsi: add ac_shader_abi::chip_class
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
a6f597536d
commit
7763c7b2ba
3 changed files with 5 additions and 0 deletions
|
|
@ -6203,6 +6203,7 @@ LLVMModuleRef ac_translate_nir_to_llvm(LLVMTargetMachineRef tm,
|
|||
if (nir->stage == MESA_SHADER_FRAGMENT)
|
||||
handle_fs_inputs_pre(&ctx, nir);
|
||||
|
||||
ctx.abi.chip_class = options->chip_class;
|
||||
ctx.abi.inputs = &ctx.inputs[0];
|
||||
ctx.abi.emit_outputs = handle_shader_outputs_post;
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@
|
|||
* radv to share a compiler backend.
|
||||
*/
|
||||
struct ac_shader_abi {
|
||||
enum chip_class chip_class;
|
||||
|
||||
LLVMValueRef base_vertex;
|
||||
LLVMValueRef start_instance;
|
||||
LLVMValueRef draw_id;
|
||||
|
|
|
|||
|
|
@ -5494,6 +5494,8 @@ static void si_init_shader_ctx(struct si_shader_context *ctx,
|
|||
{
|
||||
struct lp_build_tgsi_context *bld_base;
|
||||
|
||||
ctx->abi.chip_class = sscreen->b.chip_class;
|
||||
|
||||
si_llvm_context_init(ctx, sscreen, tm);
|
||||
|
||||
bld_base = &ctx->bld_base;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue