intel/fs: Remove min_dispatch_width from fs_visitor

It's 8 for everything except compute shaders.  For compute shaders,
there's no need to duplicate the computation and it's just a possible
source of error.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
Jason Ekstrand
2017-08-21 19:16:45 -07:00
parent b299ded02e
commit 1077981eb5
3 changed files with 25 additions and 33 deletions

View File

@@ -99,9 +99,9 @@ public:
bool run_tcs_single_patch();
bool run_tes();
bool run_gs();
bool run_cs();
bool run_cs(unsigned min_dispatch_width);
void optimize();
void allocate_registers(bool allow_spilling);
void allocate_registers(unsigned min_dispatch_width, bool allow_spilling);
void setup_fs_payload_gen4();
void setup_fs_payload_gen6();
void setup_vs_payload();
@@ -364,7 +364,6 @@ public:
bool spilled_any_registers;
const unsigned dispatch_width; /**< 8, 16 or 32 */
unsigned min_dispatch_width;
unsigned max_dispatch_width;
int shader_time_index;