[Mesa-dev] [PATCH] i965/sched: don't calculate live intervals for post-RA scheduling

Jason Ekstrand jason at jlekstrand.net
Fri Oct 30 15:36:27 PDT 2015


Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>

On Fri, Oct 30, 2015 at 3:19 PM, Connor Abbott <cwabbott0 at gmail.com> wrote:
> For some reason, this causes assertions on gm965 only. In any case, it's
> unnecessary since we don't need liveness information in the post-RA
> scheduler.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92744
> Cc: Mark Janes <mark.a.janes at intel.com>
> Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
> ---
>  src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
> index 2698399..88c45f7 100644
> --- a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
> @@ -1702,7 +1702,8 @@ instruction_scheduler::run(cfg_t *cfg)
>  void
>  fs_visitor::schedule_instructions(instruction_scheduler_mode mode)
>  {
> -   calculate_live_intervals();
> +   if (mode != SCHEDULE_POST)
> +      calculate_live_intervals();
>
>     int grf_count;
>     if (mode == SCHEDULE_POST)
> --
> 2.4.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list