[Mesa-dev] [PATCH] nir: add helper to get # of src/dest components

Connor Abbott cwabbott0 at gmail.com
Fri Jun 19 15:45:24 PDT 2015

On Thu, Jun 18, 2015 at 12:04 PM, Rob Clark <robdclark at gmail.com> wrote:
> It is only vaguely an issue at the moment
> because the priority-queue scheduler that replaced what is on master
> does very badly with wide/shallow shaders, ie. like
> glsl-fs-convolution-1... ie. shaders with a lot of instructions at
> minimum depth.. (but I have some ideas to fix that)

P.S. what does your heuristic currently look like? I was working on
i965 scheduling, and after some discussion, this is what I did:


it's called "delay" in that code for some reason instead of "depth"
(or, even better, critical path length), but you should get the
idea... choose the earliest thing we can schedule, and then among
those pick the thing with the largest depth.

More information about the mesa-dev mailing list