[igt-dev] [PATCH i-g-t 4/4] gem_exec_lut_handle: Initialize c

Chris Wilson chris at chris-wilson.co.uk
Wed Mar 13 12:36:34 UTC 2019


Quoting Petri Latvala (2019-03-13 12:06:41)
> The code that uses c deceivingly looks like it works with any initial
> value of c, it doesn't work the same for negative values. In addition
> initializing it to 0 makes the results deterministic.

Since c is reused lots, you will want to set c=0 before we use it for
CYCLE_BATCH.
-Chris


More information about the igt-dev mailing list