mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
radeonsi: Handle TGSI TXB opcode.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
ca5840afb0
commit
3e20513b8f
1 changed files with 7 additions and 0 deletions
|
|
@ -786,6 +786,12 @@ static const struct lp_build_tgsi_action tex_action = {
|
|||
.intr_name = "llvm.SI.sample"
|
||||
};
|
||||
|
||||
static const struct lp_build_tgsi_action txb_action = {
|
||||
.fetch_args = tex_fetch_args,
|
||||
.emit = lp_build_tgsi_intrinsic,
|
||||
.intr_name = "llvm.SI.sample.bias"
|
||||
};
|
||||
|
||||
|
||||
int si_pipe_shader_create(
|
||||
struct pipe_context *ctx,
|
||||
|
|
@ -822,6 +828,7 @@ int si_pipe_shader_create(
|
|||
bld_base->emit_epilogue = si_llvm_emit_epilogue;
|
||||
|
||||
bld_base->op_actions[TGSI_OPCODE_TEX] = tex_action;
|
||||
bld_base->op_actions[TGSI_OPCODE_TXB] = txb_action;
|
||||
bld_base->op_actions[TGSI_OPCODE_TXP] = tex_action;
|
||||
|
||||
si_shader_ctx.radeon_bld.load_input = declare_input;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue