mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 12:00:12 +01:00
i965: Assert that IF with cmod is Gen6 only.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
b570c4229f
commit
e133c0103d
2 changed files with 4 additions and 4 deletions
|
|
@ -193,11 +193,11 @@ fs_visitor::IF(uint32_t predicate)
|
|||
return inst;
|
||||
}
|
||||
|
||||
/** Gen6+ IF with embedded comparison. */
|
||||
/** Gen6 IF with embedded comparison. */
|
||||
fs_inst *
|
||||
fs_visitor::IF(fs_reg src0, fs_reg src1, uint32_t condition)
|
||||
{
|
||||
assert(brw->gen >= 6);
|
||||
assert(brw->gen == 6);
|
||||
fs_inst *inst = new(mem_ctx) fs_inst(BRW_OPCODE_IF,
|
||||
reg_null_d, src0, src1);
|
||||
inst->conditional_mod = condition;
|
||||
|
|
|
|||
|
|
@ -177,11 +177,11 @@ vec4_visitor::IF(uint32_t predicate)
|
|||
return inst;
|
||||
}
|
||||
|
||||
/** Gen6+ IF with embedded comparison. */
|
||||
/** Gen6 IF with embedded comparison. */
|
||||
vec4_instruction *
|
||||
vec4_visitor::IF(src_reg src0, src_reg src1, uint32_t condition)
|
||||
{
|
||||
assert(brw->gen >= 6);
|
||||
assert(brw->gen == 6);
|
||||
|
||||
vec4_instruction *inst;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue