[Mesa-dev] [PATCH] i965: Fix INTEL_DEBUG=shader_time for fragment shaders with discards.

Eric Anholt eric at anholt.net
Thu Mar 28 13:43:40 PDT 2013


Kenneth Graunke <kenneth at whitecape.org> writes:

> "discard" instructions generate HALT instructions which jump to a final
> HALT near the end of the shader.  Previously, fs_generator created this
> final jump target when it saw the first FS_OPCODE_FB_WRITE, causing it
> to jump right before the FB write epilogue.  This is normally good.
>
> However, INTEL_DEBUG=shader_time also has an epilogue section which
> records the final timestamp.  The frontend emits IR for this just before
> FS_OPCODE_FB_WRITE.  Unfortunately, this led to the following ordering:

Wow, that changes timings...

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130328/1c7d4fee/attachment.pgp>


More information about the mesa-dev mailing list