[Piglit] [PATCH 09/15] arb_direct_state_access: Testing MapNamedBufferRange.
Laura Ekstrand
laura at jlekstrand.net
Thu Apr 2 15:57:54 PDT 2015
This has been squashed into the test for NamedBufferStorage.
On Wed, Apr 1, 2015 at 4:53 AM, Martin Peres <martin.peres at linux.intel.com>
wrote:
> On 23/01/15 21:03, Laura Ekstrand wrote:
>
>> ---
>> tests/spec/arb_direct_state_access/namedbufferstorage.c | 11
>> ++++-------
>> 1 file changed, 4 insertions(+), 7 deletions(-)
>>
>> diff --git a/tests/spec/arb_direct_state_access/namedbufferstorage.c
>> b/tests/spec/arb_direct_state_access/namedbufferstorage.c
>> index c68bc27..a997311 100644
>> --- a/tests/spec/arb_direct_state_access/namedbufferstorage.c
>> +++ b/tests/spec/arb_direct_state_access/namedbufferstorage.c
>> @@ -63,22 +63,19 @@ create_mapped_buffer(GLuint *buffer, GLfloat **map,
>> GLboolean coherent,
>> (coherent ? GL_MAP_COHERENT_BIT : 0) |
>> GL_DYNAMIC_STORAGE_BIT |
>> (client_storage ? GL_CLIENT_STORAGE_BIT :
>> 0));
>> - glBindBuffer(GL_ARRAY_BUFFER, *buffer);
>> piglit_check_gl_error(GL_NO_ERROR);
>> - *map = glMapBufferRange(GL_ARRAY_BUFFER, 0, BUF_SIZE,
>> - GL_MAP_WRITE_BIT |
>> - GL_MAP_PERSISTENT_BIT |
>> - (coherent ? GL_MAP_COHERENT_BIT : 0));
>> + *map = glMapNamedBufferRange(*buffer, 0, BUF_SIZE,
>> + GL_MAP_WRITE_BIT |
>> + GL_MAP_PERSISTENT_BIT |
>> + (coherent ? GL_MAP_COHERENT_BIT :
>> 0));
>> piglit_check_gl_error(GL_NO_ERROR);
>> if (!*map)
>> return false;
>> - glBindBuffer(GL_ARRAY_BUFFER, 0);
>> -
>> return true;
>> }
>>
>>
> Same as patch 4.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20150402/0b26d3e5/attachment.html>
More information about the Piglit
mailing list