[Mesa-dev] [PATCH 1/4] anv/cmd_buffer: Align push constants to 64 bytes

Jason Ekstrand jason at jlekstrand.net
Tue Nov 22 05:17:09 UTC 2016


Jordan pointed out that this patch is bogus.  Please disregard.

On Mon, Nov 21, 2016 at 8:26 PM, Jason Ekstrand <jason at jlekstrand.net>
wrote:

> This is required by compute shaders.
>
> Cc: "13.0" <mesa-stable at lists.freedesktop.org>
> Cc: Jordan Justen <jordan.l.justen at intel.com>
> ---
>  src/intel/vulkan/anv_cmd_buffer.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/intel/vulkan/anv_cmd_buffer.c b/src/intel/vulkan/anv_cmd_
> buffer.c
> index d882c18..c6122db 100644
> --- a/src/intel/vulkan/anv_cmd_buffer.c
> +++ b/src/intel/vulkan/anv_cmd_buffer.c
> @@ -632,7 +632,7 @@ anv_cmd_buffer_push_constants(struct anv_cmd_buffer
> *cmd_buffer,
>     struct anv_state state =
>        anv_cmd_buffer_alloc_dynamic_state(cmd_buffer,
>                                           prog_data->nr_params *
> sizeof(float),
> -                                         32 /* bottom 5 bits MBZ */);
> +                                         64 /* bottom 5 bits MBZ */);
>
>     /* Walk through the param array and fill the buffer with data */
>     uint32_t *u32_map = state.map;
> --
> 2.5.0.400.gff86faf
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161121/2d7131f5/attachment.html>


More information about the mesa-dev mailing list