[Mesa-dev] [PATCH] i965/gen8: add debug code to show FS disasm with jump locations

Kenneth Graunke kenneth at whitecape.org
Fri Apr 11 19:41:39 PDT 2014


On 04/11/2014 07:33 PM, Jordan Justen wrote:
> Copied from similar code in gen8_vec4_generator.cpp.
> 
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> Cc: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  src/mesa/drivers/dri/i965/gen8_fs_generator.cpp | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp b/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp
> index bb14148..ef95eb0 100644
> --- a/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp
> +++ b/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp
> @@ -1268,6 +1268,15 @@ gen8_fs_generator::generate_code(exec_list *instructions)
>     }
>  
>     patch_jump_targets();
> +
> +   /* OK, while the INTEL_DEBUG=fs above is very nice for debugging FS
> +    * emit issues, it doesn't get the jump distances into the output,
> +    * which is often something we want to debug.  So this is here in
> +    * case you're doing that.
> +    */
> +   if (0 && unlikely(INTEL_DEBUG & DEBUG_WM)) {
> +      disassemble(stderr, 0, next_inst_offset);
> +   }
>  }
>  
>  const unsigned *
> 

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140411/d91c07fe/attachment.sig>


More information about the mesa-dev mailing list