[Mesa-dev] [PATCH 1/2] i965/fs: Print out the estimated cycle count in INTEL_DEBUG=wm

Kenneth Graunke kenneth at whitecape.org
Tue Apr 23 22:24:28 PDT 2013


On 04/23/2013 04:56 PM, Eric Anholt wrote:
> This could be used by shader-db for hopefully more accurate regression
> testing.
> ---
>   src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp |    5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp b/src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp
> index 901a362..7567123 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp
> @@ -834,6 +834,11 @@ instruction_scheduler::schedule_instructions(fs_inst *next_block_header)
>         }
>      }
>
> +   if (unlikely(INTEL_DEBUG & DEBUG_WM) && post_reg_alloc) {
> +      printf("fs%d estimated execution time: %d cycles\n",
> +             v->dispatch_width, time);
> +   }
> +
>      assert(instructions_to_schedule == 0);
>   }

This patch is:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>



More information about the mesa-dev mailing list