intel/fs: Use BRW_OPCODE_HALT for discards

We're about to start using it to implement nir_jump_halt which has
nothing inherently to do with fragment shaders or discards.  May as well
name it for the HW instruction it generates.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5071>
This commit is contained in:
Jason Ekstrand
2020-11-30 17:24:51 -06:00
parent e76e359007
commit f9d549b2bf
9 changed files with 23 additions and 27 deletions

View File

@@ -158,7 +158,7 @@ public:
virtual void invalidate_analysis(brw::analysis_dependency_class c);
void validate();
bool opt_algebraic();
bool opt_redundant_discard_jumps();
bool opt_redundant_halt();
bool opt_cse();
bool opt_cse_local(const brw::fs_live_variables &live, bblock_t *block, int &ip);
@@ -536,7 +536,7 @@ private:
struct brw_reg src0,
struct brw_reg src1);
void generate_discard_jump(fs_inst *inst);
void generate_halt(fs_inst *inst);
void generate_pack_half_2x16_split(fs_inst *inst,
struct brw_reg dst,