fix invalid buffer bind size in KHR-GL46.sparse_buffer_tests.BufferStorageTest
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 18 Jan 2022 17:48:01 +0000 (12:48 -0500)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 17 Feb 2022 20:34:01 +0000 (20:34 +0000)
commit0adfecb50afc705a36faffa86200f0be60f1a496
tree5ee1a39df116850f40d2143f3f2f1cfda7042f0f
parentd44851e2237805871d0381fb41cbd3c3a5540bac
fix invalid buffer bind size in KHR-GL46.sparse_buffer_tests.BufferStorageTest

m_sparse_bo_data_size is the size of the sparse data, but this may exceed
the value returned by GL_MAX_UNIFORM_BLOCK_SIZE, which (should) cause
the test to fail on any driver where the sparse data size is larger than
the max uniform block size

instead, use the size of the data being passed to the shaders directly
so that this can never be too large

Affects:
KHR-GL46.sparse_buffer_tests.BufferStorageTest

Components: OpenGL
VK-GL-CTS Issue: 3468

Change-Id: Ie9d3de5760773e9b1b3b24e8af77976e7a54036c
external/openglcts/modules/gl/gl4cSparseBufferTests.cpp