mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
freedreno: we do actually support sqrt
Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
625a631383
commit
4ddd4e83c7
2 changed files with 8 additions and 0 deletions
|
|
@ -1042,6 +1042,10 @@ translate_instruction(struct fd2_compile_context *ctx,
|
|||
instr = ir2_instr_create_alu(cf, ~0, RECIPSQ_IEEE);
|
||||
add_regs_scalar_1(ctx, inst, instr);
|
||||
break;
|
||||
case TGSI_OPCODE_SQRT:
|
||||
instr = ir2_instr_create_alu(cf, ~0, SQRT_IEEE);
|
||||
add_regs_scalar_1(ctx, inst, instr);
|
||||
break;
|
||||
case TGSI_OPCODE_MUL:
|
||||
instr = ir2_instr_create_alu(cf, MULv, ~0);
|
||||
add_regs_vector_2(ctx, inst, instr);
|
||||
|
|
|
|||
|
|
@ -315,7 +315,11 @@ fd_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
|
|||
case PIPE_SHADER_CAP_SUBROUTINES:
|
||||
return 0;
|
||||
case PIPE_SHADER_CAP_TGSI_SQRT_SUPPORTED:
|
||||
return 1;
|
||||
case PIPE_SHADER_CAP_INTEGERS:
|
||||
/* we should be able to support this on a3xx, but not
|
||||
* implemented yet:
|
||||
*/
|
||||
return 0;
|
||||
case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
|
||||
return 16;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue