[Mesa-dev] [PATCH 0/2] v4: Fix array overrun with too many uniforms

Petri Latvala petri.latvala at intel.com
Wed Feb 5 04:45:41 PST 2014


On 12/30/2013 11:44 AM, Petri Latvala wrote:
> Fourth version of patch series.
>
> - Fixed vec4_register_coalesce unit test. That test passes NULL for
>    prog_data, which Mesa proper doesn't do.
> - Renamed uniform_param_count to uniform_array_size.
> - Used ALIGN() to round up when dividing buffer size by 4.
> - Used MAX2() instead of taking maximum manually.
>
>
> Petri Latvala (2):
>    i965: Allocate vec4_visitor's uniform_size and uniform_vector_size
>      arrays     dynamically.
>    i965: Assert array index on access to vec4_visitor's arrays.
>
>   src/mesa/drivers/dri/i965/brw_vec4.cpp         |  2 ++
>   src/mesa/drivers/dri/i965/brw_vec4.h           |  5 +++--
>   src/mesa/drivers/dri/i965/brw_vec4_gs.c        |  5 +++++
>   src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 17 +++++++++++++++++
>   src/mesa/drivers/dri/i965/brw_vs.c             |  8 ++++++++
>   5 files changed, 35 insertions(+), 2 deletions(-)
>

Gentle prod and ping.



More information about the mesa-dev mailing list