Lines Matching defs:func
764 get_buffer(struct gl_context *ctx, const char *func, GLenum target,
770 _mesa_error(ctx, GL_INVALID_ENUM, "%s(target)", func);
775 _mesa_error(ctx, error, "%s(no buffer bound)", func);
2059 const char *func = dsa ? "glCreateBuffers" : "glGenBuffers";
2062 _mesa_debug(ctx, "%s(%d)\n", func, n);
2065 _mesa_error(ctx, GL_INVALID_VALUE, "%s(n %d < 0)", func, n);
2138 GLbitfield flags, const char *func)
2141 _mesa_error(ctx, GL_INVALID_VALUE, "%s(size <= 0)", func);
2156 _mesa_error(ctx, GL_INVALID_VALUE, "%s(invalid flag bits set)", func);
2168 _mesa_error(ctx, GL_INVALID_VALUE, "%s(SPARSE_STORAGE and READ/WRITE)", func);
2175 "%s(PERSISTENT and flags!=READ/WRITE)", func);
2181 "%s(COHERENT and flags!=PERSISTENT)", func);
2186 _mesa_error(ctx, GL_INVALID_OPERATION, "%s(immutable)", func);
2198 GLuint64 offset, const char *func)
2226 _mesa_error(ctx, GL_INVALID_OPERATION, "%s", func);
2229 _mesa_error(ctx, GL_OUT_OF_MEMORY, "%s", func);
2239 bool dsa, bool mem, bool no_error, const char *func)
2248 _mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func);
2258 _mesa_error(ctx, GL_INVALID_VALUE, "%s(memory == 0)", func);
2273 func);
2282 bufObj = _mesa_lookup_bufferobj_err(ctx, buffer, func);
2291 bufObj = get_buffer(ctx, func, target, GL_INVALID_OPERATION);
2297 if (no_error || validate_buffer_storage(ctx, bufObj, size, flags, func))
2298 buffer_storage(ctx, bufObj, memObj, target, size, data, flags, offset, func);
2397 const char *func, bool no_error)
2403 func,
2411 _mesa_error(ctx, GL_INVALID_VALUE, "%s(size < 0)", func);
2437 _mesa_error(ctx, GL_INVALID_ENUM, "%s(invalid usage: %s)", func,
2443 _mesa_error(ctx, GL_INVALID_OPERATION, "%s(immutable)", func);
2478 _mesa_error(ctx, GL_INVALID_OPERATION, "%s", func);
2481 _mesa_error(ctx, GL_OUT_OF_MEMORY, "%s", func);
2489 GLenum usage, const char *func)
2491 buffer_data(ctx, bufObj, target, size, data, usage, func, false);
2497 GLenum usage, const char *func)
2499 buffer_data(ctx, bufObj, target, size, data, usage, func, true);
2505 GLenum usage, const char *func)
2507 buffer_data_error(ctx, bufObj, target, size, data, usage, func);
2591 const char *func)
2594 true, func)) {
2601 _mesa_error(ctx, GL_INVALID_OPERATION, "%s", func);
2614 func, bufObj->Name, offset, size,
2630 * \param func Name of calling function for recording errors.
2651 bool dsa, bool no_error, const char *func)
2660 bufObj = _mesa_lookup_bufferobj_err(ctx, buffer, func);
2669 bufObj = get_buffer(ctx, func, target, GL_INVALID_OPERATION);
2675 if (no_error || validate_buffer_sub_data(ctx, bufObj, offset, size, func))
2812 const char *func, bool subdata, bool no_error)
2820 subdata, func)) {
2828 format, type, func);
2839 "internalformat size)", func);
2858 format, type, data, func)) {
2871 const GLvoid *data, const char *func, bool subdata)
2874 type, data, func, subdata, false);
2883 const GLvoid *data, const char *func,
2887 type, data, func, subdata, true);
3067 const char *func)
3073 "%s(buffer is not mapped)", func);
3171 GLint64 *params, const char *func)
3219 _mesa_error(ctx, GL_INVALID_ENUM, "%s(invalid pname: %s)", func,
3395 GLintptr writeOffset, GLsizeiptr size, const char *func)
3399 "%s(readBuffer is mapped)", func);
3405 "%s(writeBuffer is mapped)", func);
3411 "%s(readOffset %d < 0)", func, (int) readOffset);
3417 "%s(writeOffset %d < 0)", func, (int) writeOffset);
3423 "%s(size %d < 0)", func, (int) size);
3429 "%s(readOffset %d + size %d > src_buffer_size %d)", func,
3436 "%s(writeOffset %d + size %d > dst_buffer_size %d)", func,
3451 "%s(overlapping src/dst)", func);
3567 const char *func;
3571 func = "glNamedBufferSubDataEXT";
3573 if (!_mesa_handle_bind_buffer_gen(ctx, dstTargetOrName, &dst, func, false))
3576 func = "glNamedBufferSubData";
3577 dst = _mesa_lookup_bufferobj_err(ctx, dstTargetOrName, func);
3582 func = "glBufferSubData";
3583 dst = get_buffer(ctx, func, dstTargetOrName, GL_INVALID_OPERATION);
3588 if (!validate_buffer_sub_data(ctx, dst, dstOffset, size, func))
3602 const char *func)
3610 "%s(offset %ld < 0)", func, (long) offset);
3616 "%s(length %ld < 0)", func, (long) length);
3632 _mesa_error(ctx, GL_INVALID_OPERATION, "%s(length = 0)", func);
3651 "%s(access has undefined bits set)", func);
3657 "%s(access indicates neither read or write)", func);
3666 "%s(read access with disallowed bits)", func);
3673 "%s(access has flush explicit without write)", func);
3680 "%s(buffer does not allow read access)", func);
3687 "%s(buffer does not allow write access)", func);
3694 "%s(buffer does not allow coherent access)", func);
3701 "%s(buffer does not allow persistent access)", func);
3707 "%s(offset %lu + length %lu > buffer_size %lu)", func,
3715 "%s(buffer already mapped)", func);
3727 func, bufObj->Name, offset, length,
3738 const char *func)
3741 _mesa_error(ctx, GL_OUT_OF_MEMORY, "%s(buffer size = 0)", func);
3748 _mesa_error(ctx, GL_OUT_OF_MEMORY, "%s(map failed)", func);
3767 if (strstr(func, "Range") == NULL) { /* If not MapRange */
3781 if (strstr(func, "Range") == NULL) { /* If not MapRange */
3845 GLbitfield access, bool dsa_ext, const char *func)
3852 "%s(ARB_map_buffer_range not supported)", func);
3858 if (!_mesa_handle_bind_buffer_gen(ctx, buffer, &bufObj, func, false))
3861 bufObj = _mesa_lookup_bufferobj_err(ctx, buffer, func);
3866 if (!validate_map_buffer_range(ctx, bufObj, offset, length, access, func))
3869 return map_buffer_range(ctx, bufObj, offset, length, access, func);
4030 const char *func)
4034 "%s(ARB_map_buffer_range not supported)", func);
4040 "%s(offset %ld < 0)", func, (long) offset);
4046 "%s(length %ld < 0)", func, (long) length);
4053 "%s(buffer is not mapped)", func);
4060 "%s(GL_MAP_FLUSH_EXPLICIT_BIT not set)", func);
4066 "%s(offset %ld + length %ld > mapped length %ld)", func,
5316 GLboolean commit, const char *func)
5320 func);
5327 func);
5340 func);
5347 func);