mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
i965/fs: Don't constant-fold RCP
No shader-db changes on Broadwell Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
01425c45b3
commit
9881eab197
1 changed files with 0 additions and 15 deletions
|
|
@ -654,21 +654,6 @@ fs_visitor::try_constant_propagate(fs_inst *inst, acp_entry *entry)
|
|||
}
|
||||
break;
|
||||
|
||||
case SHADER_OPCODE_RCP:
|
||||
/* The hardware doesn't do math on immediate values
|
||||
* (because why are you doing that, seriously?), but
|
||||
* the correct answer is to just constant fold it
|
||||
* anyway.
|
||||
*/
|
||||
assert(i == 0);
|
||||
if (inst->src[0].f != 0.0f) {
|
||||
inst->opcode = BRW_OPCODE_MOV;
|
||||
inst->src[0] = val;
|
||||
inst->src[0].f = 1.0f / inst->src[0].f;
|
||||
progress = true;
|
||||
}
|
||||
break;
|
||||
|
||||
case SHADER_OPCODE_UNTYPED_ATOMIC:
|
||||
case SHADER_OPCODE_UNTYPED_SURFACE_READ:
|
||||
case SHADER_OPCODE_UNTYPED_SURFACE_WRITE:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue