Home | History | Annotate | Download | only in main

Lines Matching refs:Access

219  * Convert a GLbitfield describing the mapped buffer access flags
223 simplified_access_mode(struct gl_context *ctx, GLbitfield access)
226 if ((access & rwFlags) == rwFlags)
228 if ((access & GL_MAP_READ_BIT) == GL_MAP_READ_BIT)
230 if ((access & GL_MAP_WRITE_BIT) == GL_MAP_WRITE_BIT)
251 assert(access == 0);
758 GLsizeiptr length, GLbitfield access,
768 bufObj->Mappings[index].AccessFlags = access;
1090 * A convenience function for direct state access functions that throws
1963 /* In direct state access, buffer objects have an unspecified target
1975 /* In direct state access, buffer objects have an unspecified target
2165 /* In direct state access, buffer objects have an unspecified target since
2583 if (bufObj->Access != GL_READ_ONLY_ARB) {
2991 GLsizeiptr length, GLbitfield access,
3038 if (access & ~allowed_access) {
3041 "%s(access has undefined bits set)", func);
3045 if ((access & (GL_MAP_READ_BIT | GL_MAP_WRITE_BIT)) == 0) {
3047 "%s(access indicates neither read or write)", func);
3051 if ((access & GL_MAP_READ_BIT) &&
3052 (access & (GL_MAP_INVALIDATE_RANGE_BIT |
3056 "%s(read access with disallowed bits)", func);
3060 if ((access & GL_MAP_FLUSH_EXPLICIT_BIT) &&
3061 ((access & GL_MAP_WRITE_BIT) == 0)) {
3063 "%s(access has flush explicit without write)", func);
3067 if (access & GL_MAP_READ_BIT &&
3070 "%s(buffer does not allow read access)", func);
3074 if (access & GL_MAP_WRITE_BIT &&
3077 "%s(buffer does not allow write access)", func);
3081 if (access & GL_MAP_COHERENT_BIT &&
3084 "%s(buffer does not allow coherent access)", func);
3088 if (access & GL_MAP_PERSISTENT_BIT &&
3091 "%s(buffer does not allow persistent access)", func);
3109 if (access & GL_MAP_WRITE_BIT) {
3127 GLintptr offset, GLsizeiptr length, GLbitfield access,
3136 void *map = ctx->Driver.MapBufferRange(ctx, offset, length, access, bufObj,
3149 assert(bufObj->Mappings[MAP_USER].AccessFlags == access);
3152 if (access & GL_MAP_WRITE_BIT) {
3159 printf("glMapBuffer(%u, sz %ld, access 0x%x)\n",
3160 bufObj->Name, bufObj->Size, access);
3161 Access must be write only */
3162 if ((access & GL_MAP_WRITE_BIT) && (!(access & ~GL_MAP_WRITE_BIT))) {
3187 GLsizeiptr length, GLbitfield access)
3194 return map_buffer_range(ctx, bufObj, offset, length, access,
3200 GLbitfield access)
3215 if (!validate_map_buffer_range(ctx, bufObj, offset, length, access,
3219 return map_buffer_range(ctx, bufObj, offset, length, access,
3225 GLsizeiptr length, GLbitfield access)
3230 return map_buffer_range(ctx, bufObj, offset, length, access,
3236 GLbitfield access)
3252 if (!validate_map_buffer_range(ctx, bufObj, offset, length, access,
3256 return map_buffer_range(ctx, bufObj, offset, length, access,
3261 * Converts GLenum access from MapBuffer and MapNamedBuffer into
3264 * \return true if the type of requested access is permissible.
3267 get_map_buffer_access_flags(struct gl_context *ctx, GLenum access,
3270 switch (access) {
3287 _mesa_MapBuffer_no_error(GLenum target, GLenum access)
3292 get_map_buffer_access_flags(ctx, access, &accessFlags);
3302 _mesa_MapBuffer(GLenum target, GLenum access)
3308 if (!get_map_buffer_access_flags(ctx, access, &accessFlags)) {
3309 _mesa_error(ctx, GL_INVALID_ENUM, "glMapBuffer(invalid access)");
3326 _mesa_MapNamedBuffer_no_error(GLuint buffer, GLenum access)
3331 get_map_buffer_access_flags(ctx, access, &accessFlags);
3340 _mesa_MapNamedBuffer(GLuint buffer, GLenum access)
3346 if (!get_map_buffer_access_flags(ctx, access, &accessFlags)) {
3347 _mesa_error(ctx, GL_INVALID_ENUM, "glMapNamedBuffer(invalid access)");
4547 * with MAP_PERSISTENT_BIT set in the MapBufferRange access flags."
4594 * with MAP_PERSISTENT_BIT set in the MapBufferRange access flags."