intel/fs: Use compare_func for wm_prog_key::alpha_test_func
Because 0 is no longer a recognizable value (it's NEVER, which isn't a good default), we add an emit_alpha_test bool to tell the back-end when to bother alpha testing. This lets us only touch crocus with the change. Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14157>
This commit is contained in:

committed by
Marge Bot

parent
460a953df5
commit
a1de102479
@@ -486,6 +486,8 @@ struct brw_wm_prog_key {
|
||||
bool stats_wm:1;
|
||||
bool flat_shade:1;
|
||||
unsigned nr_color_regions:5;
|
||||
bool emit_alpha_test:1;
|
||||
enum compare_func alpha_test_func:3; /* < For Gfx4/5 MRT alpha test */
|
||||
bool alpha_test_replicate_alpha:1;
|
||||
bool alpha_to_coverage:1;
|
||||
bool clamp_fragment_color:1;
|
||||
@@ -499,7 +501,6 @@ struct brw_wm_prog_key {
|
||||
|
||||
uint8_t color_outputs_valid;
|
||||
uint64_t input_slots_valid;
|
||||
GLenum alpha_test_func; /* < For Gfx4/5 MRT alpha test */
|
||||
float alpha_test_ref;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user