r600/eg: fix buffer sizing.
authorDave Airlie <airlied@redhat.com>
Sun, 4 Feb 2018 20:31:48 +0000 (06:31 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Feb 2018 20:08:12 +0000 (06:08 +1000)
commit736b150768bdf4a0b46fbf8684dcb645d9fa89e3
treeb0b2125933bd356db21613d65a1a46a3103b7f64
parentc9c4f0b7226b1838c797f9257389c5284be401d9
r600/eg: fix buffer sizing.

For buffers we want the size in bytes,
For images we want it in elements.

This fixes:
KHR-GL45.shader_storage_buffer_object.advanced-unsizedArrayLength-cs-std430-vec-pad

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/evergreen_state.c