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

Petri Latvala petri.latvala at intel.com
Mon Dec 30 01:44:02 PST 2013


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(-)

-- 
1.8.4.rc3



More information about the mesa-dev mailing list