[Mesa-dev] [PATCH 07/88] i965: add new field for storing program size

Kenneth Graunke kenneth at whitecape.org
Mon Sep 26 01:20:34 UTC 2016


On Saturday, September 24, 2016 3:24:48 PM PDT Timothy Arceri wrote:
> From: Carl Worth <cworth at cworth.org>
> 
> This will be used by the on disk shader cache.
> 
> Signed-off-by: Timothy Arceri <timothy.arceri at collabora.com>
> ---
>  src/mesa/drivers/dri/i965/brw_compiler.h | 4 ++++
>  src/mesa/drivers/dri/i965/brw_vs.c       | 2 ++
>  src/mesa/drivers/dri/i965/brw_wm.c       | 2 ++
>  3 files changed, 8 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_compiler.h b/src/mesa/drivers/dri/i965/brw_compiler.h
> index 445c166..183f7e6 100644
> --- a/src/mesa/drivers/dri/i965/brw_compiler.h
> +++ b/src/mesa/drivers/dri/i965/brw_compiler.h
> @@ -428,6 +428,8 @@ struct brw_wm_prog_data {
>      * For varying slots that are not used by the FS, the value is -1.
>      */
>     int urb_setup[VARYING_SLOT_MAX];
> +
> +   GLuint program_size;

unsigned

>  };
>  
>  struct brw_push_const_block {
> @@ -644,6 +646,8 @@ struct brw_vs_prog_data {
>     bool uses_basevertex;
>     bool uses_baseinstance;
>     bool uses_drawid;
> +
> +   GLuint program_size;

unsigned

>  };
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160925/52cc6d23/attachment.sig>


More information about the mesa-dev mailing list