diff options
author | Marek Olšák <[email protected]> | 2013-05-02 05:08:08 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-05-10 03:23:31 +0200 |
commit | da33f9b919039442e9ab51f9b1d1c83a73607133 (patch) | |
tree | 9fbe193960cc4605b7ae57d21c1d954770525b46 /src/gallium/drivers/r600/r600_shader.h | |
parent | 121c2c898368ec8de54d230b7db0316695e63a83 (diff) |
r600g: increase array size for shader inputs and outputs
and add assertions to prevent buffer overflow. This fixes corruption
of the r600_shader struct.
NOTE: This is a candidate for the stable branches.
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.h b/src/gallium/drivers/r600/r600_shader.h index 411667ae89e..d989ce43649 100644 --- a/src/gallium/drivers/r600/r600_shader.h +++ b/src/gallium/drivers/r600/r600_shader.h @@ -45,8 +45,8 @@ struct r600_shader { unsigned ninput; unsigned noutput; unsigned nlds; - struct r600_shader_io input[32]; - struct r600_shader_io output[32]; + struct r600_shader_io input[40]; + struct r600_shader_io output[40]; boolean uses_kill; boolean fs_write_all; boolean two_side; |