[Mesa-dev] [PATCH 09/12] i965: Move brw_get_shader_time_index() call out of emit functions

Matt Turner mattst88 at gmail.com
Wed Oct 7 15:04:57 PDT 2015


On Wed, Oct 7, 2015 at 7:11 AM, Kristian Høgsberg Kristensen
<krh at bitplanet.net> wrote:
> diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
> index 242114f..1d020f6 100644
> --- a/src/mesa/drivers/dri/i965/brw_wm.c
> +++ b/src/mesa/drivers/dri/i965/brw_wm.c
> @@ -224,8 +224,14 @@ brw_codegen_wm_prog(struct brw_context *brw,
>     if (unlikely(INTEL_DEBUG & DEBUG_WM) && fs->base.ir)
>        brw_dump_ir("fragment", prog, &fs->base, &fp->program.Base);
>
> +   int st_index8 = -1, st_index16 = -1;
> +   if (INTEL_DEBUG & DEBUG_SHADER_TIME) {
> +      st_index8 = brw_get_shader_time_index(brw, prog, &fp->program.Base, ST_FS8);
> +      st_index16 = brw_get_shader_time_index(brw, prog, &fp->program.Base, ST_FS16);
> +   }
> +
>     program = brw_wm_fs_emit(brw, mem_ctx, key, &prog_data,
> -                            &fp->program, prog, &program_size);
> +                            &fp->program, prog, st_index8, st_index16,&program_size);

Missing space after comma.


More information about the mesa-dev mailing list