mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
mesa/main: remove VERBOSE_API
This feature has been left to bitrot for a long time, and no longer works consistently. Here's a few examples of things I found: - Lots of newer GL commands never implement these - It's very inconsistent what level of details about the command is logged: some print arguments, some print details about arguments, some print return-values, some print the function name, some print a slightly incorrect function name. - Interactions with GL_KHR_no_error is entirely random; some no-error functions report, and some does not. Realistically, this mechanism hasn't worked for a long time, and nobody seems to care. If a user wants to trace what OpenGL calls are done, we have tools like apitrace that are better suited for this purpose anyway. Let's just rip it out. Since VERBOSE_TEXTURE is just a subset of VERBOSE_API, rip that out as well.
This commit is contained in:
parent
7e06dc274f
commit
3956b85507
43 changed files with 4 additions and 730 deletions
|
|
@ -91,9 +91,6 @@ _mesa_PushAttrib(GLbitfield mask)
|
|||
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glPushAttrib %x\n", (int) mask);
|
||||
|
||||
if (ctx->AttribStackDepth >= MAX_ATTRIB_STACK_DEPTH) {
|
||||
_mesa_error(ctx, GL_STACK_OVERFLOW, "glPushAttrib");
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -317,15 +317,6 @@ _mesa_BlendFuncSeparate( GLenum sfactorRGB, GLenum dfactorRGB,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glBlendFuncSeparate %s %s %s %s\n",
|
||||
_mesa_enum_to_string(sfactorRGB),
|
||||
_mesa_enum_to_string(dfactorRGB),
|
||||
_mesa_enum_to_string(sfactorA),
|
||||
_mesa_enum_to_string(dfactorA));
|
||||
|
||||
|
||||
|
||||
if (skip_blend_state_update(ctx, sfactorRGB, dfactorRGB, sfactorA, dfactorA))
|
||||
return;
|
||||
|
||||
|
|
@ -528,10 +519,6 @@ _mesa_BlendEquation( GLenum mode )
|
|||
bool changed = false;
|
||||
enum pipe_advanced_blend_mode advanced_mode = advanced_blend_mode(ctx, mode);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glBlendEquation(%s)\n",
|
||||
_mesa_enum_to_string(mode));
|
||||
|
||||
if (ctx->Color._BlendEquationPerBuffer) {
|
||||
/* Check all per-buffer states */
|
||||
for (buf = 0; buf < numBuffers; buf++) {
|
||||
|
|
@ -609,10 +596,6 @@ _mesa_BlendEquationiARB(GLuint buf, GLenum mode)
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
enum pipe_advanced_blend_mode advanced_mode = advanced_blend_mode(ctx, mode);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glBlendEquationi(%u, %s)\n",
|
||||
buf, _mesa_enum_to_string(mode));
|
||||
|
||||
if (buf >= ctx->Const.MaxDrawBuffers) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glBlendEquationi(buffer=%u)",
|
||||
buf);
|
||||
|
|
@ -705,11 +688,6 @@ _mesa_BlendEquationSeparate(GLenum modeRGB, GLenum modeA)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glBlendEquationSeparateEXT(%s %s)\n",
|
||||
_mesa_enum_to_string(modeRGB),
|
||||
_mesa_enum_to_string(modeA));
|
||||
|
||||
blend_equation_separate(ctx, modeRGB, modeA, false);
|
||||
}
|
||||
|
||||
|
|
@ -765,11 +743,6 @@ _mesa_BlendEquationSeparateiARB(GLuint buf, GLenum modeRGB, GLenum modeA)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glBlendEquationSeparatei(%u, %s %s)\n", buf,
|
||||
_mesa_enum_to_string(modeRGB),
|
||||
_mesa_enum_to_string(modeA));
|
||||
|
||||
if (buf >= ctx->Const.MaxDrawBuffers) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glBlendEquationSeparatei(buffer=%u)",
|
||||
buf);
|
||||
|
|
@ -834,10 +807,6 @@ _mesa_AlphaFunc( GLenum func, GLclampf ref )
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glAlphaFunc(%s, %f)\n",
|
||||
_mesa_enum_to_string(func), ref);
|
||||
|
||||
if (ctx->Color.AlphaFunc == func && ctx->Color.AlphaRefUnclamped == ref)
|
||||
return; /* no change */
|
||||
|
||||
|
|
@ -936,9 +905,6 @@ _mesa_LogicOp( GLenum opcode )
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glLogicOp(%s)\n", _mesa_enum_to_string(opcode));
|
||||
|
||||
logic_op(ctx, opcode, false);
|
||||
}
|
||||
|
||||
|
|
@ -985,10 +951,6 @@ _mesa_ColorMask( GLboolean red, GLboolean green,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glColorMask(%d, %d, %d, %d)\n",
|
||||
red, green, blue, alpha);
|
||||
|
||||
GLbitfield mask = (!!red) |
|
||||
((!!green) << 1) |
|
||||
((!!blue) << 2) |
|
||||
|
|
@ -1014,10 +976,6 @@ _mesa_ColorMaski(GLuint buf, GLboolean red, GLboolean green,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glColorMaski %u %d %d %d %d\n",
|
||||
buf, red, green, blue, alpha);
|
||||
|
||||
if (buf >= ctx->Const.MaxDrawBuffers) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glColorMaski(buf=%u)", buf);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -910,14 +910,6 @@ _mesa_BlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx,
|
||||
"glBlitFramebuffer(%d, %d, %d, %d, "
|
||||
" %d, %d, %d, %d, 0x%x, %s)\n",
|
||||
srcX0, srcY0, srcX1, srcY1,
|
||||
dstX0, dstY0, dstX1, dstY1,
|
||||
mask, _mesa_enum_to_string(filter));
|
||||
|
||||
blit_framebuffer_err(ctx, ctx->ReadBuffer, ctx->DrawBuffer,
|
||||
srcX0, srcY0, srcX1, srcY1,
|
||||
dstX0, dstY0, dstX1, dstY1,
|
||||
|
|
@ -1001,15 +993,6 @@ _mesa_BlitNamedFramebuffer(GLuint readFramebuffer, GLuint drawFramebuffer,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx,
|
||||
"glBlitNamedFramebuffer(%u %u %d, %d, %d, %d, "
|
||||
" %d, %d, %d, %d, 0x%x, %s)\n",
|
||||
readFramebuffer, drawFramebuffer,
|
||||
srcX0, srcY0, srcX1, srcY1,
|
||||
dstX0, dstY0, dstX1, dstY1,
|
||||
mask, _mesa_enum_to_string(filter));
|
||||
|
||||
blit_named_framebuffer(ctx, readFramebuffer, drawFramebuffer,
|
||||
srcX0, srcY0, srcX1, srcY1,
|
||||
dstX0, dstY0, dstX1, dstY1,
|
||||
|
|
|
|||
|
|
@ -1527,11 +1527,6 @@ _mesa_BindBuffer(GLenum target, GLuint buffer)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
_mesa_debug(ctx, "glBindBuffer(%s, %u)\n",
|
||||
_mesa_enum_to_string(target), buffer);
|
||||
}
|
||||
|
||||
struct gl_buffer_object **bindTarget = get_buffer_target(ctx, target, false);
|
||||
if (!bindTarget) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glBindBufferARB(target %s)",
|
||||
|
|
@ -1995,12 +1990,8 @@ create_buffers(struct gl_context *ctx, GLsizei n, GLuint *buffers, bool dsa)
|
|||
static void
|
||||
create_buffers_err(struct gl_context *ctx, GLsizei n, GLuint *buffers, bool dsa)
|
||||
{
|
||||
const char *func = dsa ? "glCreateBuffers" : "glGenBuffers";
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "%s(%d)\n", func, n);
|
||||
|
||||
if (n < 0) {
|
||||
const char *func = dsa ? "glCreateBuffers" : "glGenBuffers";
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "%s(n %d < 0)", func, n);
|
||||
return;
|
||||
}
|
||||
|
|
@ -2337,14 +2328,6 @@ buffer_data(struct gl_context *ctx, struct gl_buffer_object *bufObj,
|
|||
{
|
||||
bool valid_usage;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
_mesa_debug(ctx, "%s(%s, %ld, %p, %s)\n",
|
||||
func,
|
||||
_mesa_enum_to_string(target),
|
||||
(long int) size, data,
|
||||
_mesa_enum_to_string(usage));
|
||||
}
|
||||
|
||||
if (!no_error) {
|
||||
if (size < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "%s(size < 0)", func);
|
||||
|
|
@ -4877,12 +4860,6 @@ bind_buffer_range(GLenum target, GLuint index, GLuint buffer, GLintptr offset,
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
struct gl_buffer_object *bufObj;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
_mesa_debug(ctx, "glBindBufferRange(%s, %u, %u, %lu, %lu)\n",
|
||||
_mesa_enum_to_string(target), index, buffer,
|
||||
(unsigned long) offset, (unsigned long) size);
|
||||
}
|
||||
|
||||
if (buffer == 0) {
|
||||
bufObj = NULL;
|
||||
} else {
|
||||
|
|
@ -4970,11 +4947,6 @@ _mesa_BindBufferBase(GLenum target, GLuint index, GLuint buffer)
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
struct gl_buffer_object *bufObj;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
_mesa_debug(ctx, "glBindBufferBase(%s, %u, %u)\n",
|
||||
_mesa_enum_to_string(target), index, buffer);
|
||||
}
|
||||
|
||||
if (buffer == 0) {
|
||||
bufObj = NULL;
|
||||
} else {
|
||||
|
|
@ -5038,12 +5010,6 @@ _mesa_BindBuffersRange(GLenum target, GLuint first, GLsizei count,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
_mesa_debug(ctx, "glBindBuffersRange(%s, %u, %d, %p, %p, %p)\n",
|
||||
_mesa_enum_to_string(target), first, count,
|
||||
buffers, offsets, sizes);
|
||||
}
|
||||
|
||||
switch (target) {
|
||||
case GL_TRANSFORM_FEEDBACK_BUFFER:
|
||||
bind_xfb_buffers(ctx, first, count, buffers, true, offsets, sizes,
|
||||
|
|
@ -5074,11 +5040,6 @@ _mesa_BindBuffersBase(GLenum target, GLuint first, GLsizei count,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
_mesa_debug(ctx, "glBindBuffersBase(%s, %u, %d, %p)\n",
|
||||
_mesa_enum_to_string(target), first, count, buffers);
|
||||
}
|
||||
|
||||
switch (target) {
|
||||
case GL_TRANSFORM_FEEDBACK_BUFFER:
|
||||
bind_xfb_buffers(ctx, first, count, buffers, false, NULL, NULL,
|
||||
|
|
|
|||
|
|
@ -291,10 +291,6 @@ draw_buffer(struct gl_context *ctx, struct gl_framebuffer *fb,
|
|||
|
||||
FLUSH_VERTICES(ctx, 0, GL_COLOR_BUFFER_BIT);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
_mesa_debug(ctx, "%s %s\n", caller, _mesa_enum_to_string(buffer));
|
||||
}
|
||||
|
||||
if (buffer == GL_NONE) {
|
||||
destMask = 0x0;
|
||||
}
|
||||
|
|
@ -941,9 +937,6 @@ read_buffer(struct gl_context *ctx, struct gl_framebuffer *fb,
|
|||
|
||||
FLUSH_VERTICES(ctx, 0, GL_PIXEL_MODE_BIT);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "%s %s\n", caller, _mesa_enum_to_string(buffer));
|
||||
|
||||
if (buffer == GL_NONE) {
|
||||
/* This is legal--it means that no buffer should be bound for reading. */
|
||||
srcBuffer = BUFFER_NONE;
|
||||
|
|
|
|||
|
|
@ -238,10 +238,6 @@ void GLAPIENTRY
|
|||
_mesa_Clear(GLbitfield mask)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glClear 0x%x\n", mask);
|
||||
|
||||
clear(ctx, mask, false);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -309,10 +309,6 @@ dispatch_compute(GLuint num_groups_x, GLuint num_groups_y,
|
|||
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glDispatchCompute(%d, %d, %d)\n",
|
||||
num_groups_x, num_groups_y, num_groups_z);
|
||||
|
||||
info.grid[0] = num_groups_x;
|
||||
info.grid[1] = num_groups_y;
|
||||
info.grid[2] = num_groups_z;
|
||||
|
|
@ -358,9 +354,6 @@ dispatch_compute_indirect(GLintptr indirect, bool no_error)
|
|||
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glDispatchComputeIndirect(%ld)\n", (long) indirect);
|
||||
|
||||
if (!no_error && !valid_dispatch_indirect(ctx, indirect))
|
||||
return;
|
||||
|
||||
|
|
@ -402,12 +395,6 @@ dispatch_compute_group_size(GLuint num_groups_x, GLuint num_groups_y,
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx,
|
||||
"glDispatchComputeGroupSizeARB(%d, %d, %d, %d, %d, %d)\n",
|
||||
num_groups_x, num_groups_y, num_groups_z,
|
||||
group_size_x, group_size_y, group_size_z);
|
||||
|
||||
struct pipe_grid_info info = { 0 };
|
||||
info.grid[0] = num_groups_x;
|
||||
info.grid[1] = num_groups_y;
|
||||
|
|
|
|||
|
|
@ -47,10 +47,6 @@ conservative_raster_parameter(GLenum pname, GLfloat param,
|
|||
return;
|
||||
}
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "%s(%s, %g)\n",
|
||||
func, _mesa_enum_to_string(pname), param);
|
||||
|
||||
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
||||
|
||||
switch (pname) {
|
||||
|
|
|
|||
|
|
@ -1431,9 +1431,6 @@ _mesa_make_current( struct gl_context *newCtx,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(curCtx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(newCtx, "_mesa_make_current()\n");
|
||||
|
||||
/* Check that the context's and framebuffer's visuals are compatible.
|
||||
*/
|
||||
if (newCtx && drawBuffer && newCtx->WinSysDrawBuffer != drawBuffer) {
|
||||
|
|
|
|||
|
|
@ -633,16 +633,6 @@ _mesa_CopyImageSubData(GLuint srcName, GLenum srcTarget, GLint srcLevel,
|
|||
GLuint src_num_samples, dst_num_samples;
|
||||
int dstWidth, dstHeight, dstDepth;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glCopyImageSubData(%u, %s, %d, %d, %d, %d, "
|
||||
"%u, %s, %d, %d, %d, %d, "
|
||||
"%d, %d, %d)\n",
|
||||
srcName, _mesa_enum_to_string(srcTarget), srcLevel,
|
||||
srcX, srcY, srcZ,
|
||||
dstName, _mesa_enum_to_string(dstTarget), dstLevel,
|
||||
dstX, dstY, dstZ,
|
||||
srcWidth, srcHeight, srcDepth);
|
||||
|
||||
if (!ctx->Extensions.ARB_copy_image) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"glCopyImageSubData(extension not available)");
|
||||
|
|
@ -791,16 +781,6 @@ _mesa_CopyImageSubDataNV(GLuint srcName, GLenum srcTarget, GLint srcLevel,
|
|||
GLuint src_bw, src_bh, dst_bw, dst_bh;
|
||||
GLuint src_num_samples, dst_num_samples;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glCopyImageSubDataNV(%u, %s, %d, %d, %d, %d, "
|
||||
"%u, %s, %d, %d, %d, %d, "
|
||||
"%d, %d, %d)\n",
|
||||
srcName, _mesa_enum_to_string(srcTarget), srcLevel,
|
||||
srcX, srcY, srcZ,
|
||||
dstName, _mesa_enum_to_string(dstTarget), dstLevel,
|
||||
dstX, dstY, dstZ,
|
||||
srcWidth, srcHeight, srcDepth);
|
||||
|
||||
if (!ctx->Extensions.NV_copy_image) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"glCopyImageSubDataNV(extension not available)");
|
||||
|
|
|
|||
|
|
@ -101,10 +101,8 @@ set_verbose_flags(const char *str)
|
|||
GLbitfield flag;
|
||||
};
|
||||
static const struct option opts[] = {
|
||||
{ "tex", VERBOSE_TEXTURE },
|
||||
{ "mat", VERBOSE_MATERIAL },
|
||||
{ "state", VERBOSE_STATE },
|
||||
{ "api", VERBOSE_API },
|
||||
{ "list", VERBOSE_DISPLAY_LIST },
|
||||
};
|
||||
GLuint i;
|
||||
|
|
|
|||
|
|
@ -46,9 +46,6 @@ _mesa_ClearDepth( GLclampd depth )
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glClearDepth(%f)\n", depth);
|
||||
|
||||
ctx->PopAttribState |= GL_DEPTH_BUFFER_BIT;
|
||||
ctx->Depth.Clear = CLAMP( depth, 0.0, 1.0 );
|
||||
}
|
||||
|
|
@ -103,10 +100,6 @@ void GLAPIENTRY
|
|||
_mesa_DepthFunc(GLenum func)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glDepthFunc %s\n", _mesa_enum_to_string(func));
|
||||
|
||||
depth_func(ctx, func, false);
|
||||
}
|
||||
|
||||
|
|
@ -117,9 +110,6 @@ _mesa_DepthMask( GLboolean flag )
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glDepthMask %d\n", flag);
|
||||
|
||||
/*
|
||||
* GL_TRUE indicates depth buffer writing is enabled (default)
|
||||
* GL_FALSE indicates depth buffer writing is disabled
|
||||
|
|
@ -143,9 +133,6 @@ _mesa_DepthBoundsEXT( GLclampd zmin, GLclampd zmax )
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glDepthBounds(%f, %f)\n", zmin, zmax);
|
||||
|
||||
if (zmin > zmax) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glDepthBoundsEXT(zmin > zmax)");
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -13170,10 +13170,6 @@ _mesa_NewList(GLuint name, GLenum mode)
|
|||
FLUSH_CURRENT(ctx, 0); /* must be called before assert */
|
||||
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glNewList %u %s\n", name,
|
||||
_mesa_enum_to_string(mode));
|
||||
|
||||
if (name == 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glNewList");
|
||||
return;
|
||||
|
|
@ -13329,9 +13325,6 @@ _mesa_EndList(void)
|
|||
SAVE_FLUSH_VERTICES(ctx);
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glEndList\n");
|
||||
|
||||
if (ctx->ExecuteFlag && _mesa_inside_dlist_begin_end(ctx)) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"glEndList() called inside glBegin/End");
|
||||
|
|
@ -13443,9 +13436,6 @@ _mesa_CallList(GLuint list)
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
FLUSH_CURRENT(ctx, 0);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glCallList %d\n", list);
|
||||
|
||||
if (list == 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glCallList(list==0)");
|
||||
return;
|
||||
|
|
@ -13487,9 +13477,6 @@ _mesa_CallLists(GLsizei n, GLenum type, const GLvoid * lists)
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
GLboolean save_compile_flag;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glCallLists %d\n", n);
|
||||
|
||||
if (type < GL_BYTE || type > GL_4_BYTES) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glCallLists(type)");
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -54,17 +54,6 @@ _mesa_DrawPixels( GLsizei width, GLsizei height,
|
|||
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glDrawPixels(%d, %d, %s, %s, %p) // to %s at %ld, %ld\n",
|
||||
width, height,
|
||||
_mesa_enum_to_string(format),
|
||||
_mesa_enum_to_string(type),
|
||||
pixels,
|
||||
_mesa_enum_to_string(ctx->DrawBuffer->ColorDrawBuffer[0]),
|
||||
lroundf(ctx->Current.RasterPos[0]),
|
||||
lroundf(ctx->Current.RasterPos[1]));
|
||||
|
||||
|
||||
if (width < 0 || height < 0) {
|
||||
_mesa_error( ctx, GL_INVALID_VALUE, "glDrawPixels(width or height < 0)" );
|
||||
return;
|
||||
|
|
@ -203,16 +192,6 @@ _mesa_CopyPixels( GLint srcx, GLint srcy, GLsizei width, GLsizei height,
|
|||
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx,
|
||||
"glCopyPixels(%d, %d, %d, %d, %s) // from %s to %s at %ld, %ld\n",
|
||||
srcx, srcy, width, height,
|
||||
_mesa_enum_to_string(type),
|
||||
_mesa_enum_to_string(ctx->ReadBuffer->ColorReadBuffer),
|
||||
_mesa_enum_to_string(ctx->DrawBuffer->ColorDrawBuffer[0]),
|
||||
lroundf(ctx->Current.RasterPos[0]),
|
||||
lroundf(ctx->Current.RasterPos[1]));
|
||||
|
||||
if (width < 0 || height < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glCopyPixels(width or height < 0)");
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -483,12 +483,6 @@ _mesa_set_framebuffer_srgb(struct gl_context *ctx, GLboolean state)
|
|||
void
|
||||
_mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
|
||||
{
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "%s %s (newstate is %x)\n",
|
||||
state ? "glEnable" : "glDisable",
|
||||
_mesa_enum_to_string(cap),
|
||||
ctx->NewState);
|
||||
|
||||
switch (cap) {
|
||||
case GL_ALPHA_TEST:
|
||||
if (!_mesa_is_desktop_gl_compat(ctx) && !_mesa_is_gles1(ctx))
|
||||
|
|
|
|||
|
|
@ -129,11 +129,6 @@ _mesa_DeleteMemoryObjectsEXT(GLsizei n, const GLuint *memoryObjects)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API)) {
|
||||
_mesa_debug(ctx, "glDeleteMemoryObjectsEXT(%d, %p)\n", n,
|
||||
memoryObjects);
|
||||
}
|
||||
|
||||
if (!_mesa_has_EXT_memory_object(ctx)) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"glDeleteMemoryObjectsEXT(unsupported)");
|
||||
|
|
@ -188,9 +183,6 @@ _mesa_CreateMemoryObjectsEXT(GLsizei n, GLuint *memoryObjects)
|
|||
|
||||
const char *func = "glCreateMemoryObjectsEXT";
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API))
|
||||
_mesa_debug(ctx, "%s(%d, %p)\n", func, n, memoryObjects);
|
||||
|
||||
if (!_mesa_has_EXT_memory_object(ctx)) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func);
|
||||
return;
|
||||
|
|
@ -785,9 +777,6 @@ create_semaphores(GLsizei n, GLuint *semaphores, bool NV)
|
|||
|
||||
const char *func = NV ? "glCreateSemaphoresNV" : "glGenSemaphoresEXT";
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API))
|
||||
_mesa_debug(ctx, "%s(%d, %p)\n", func, n, semaphores);
|
||||
|
||||
if (NV ? !_mesa_has_NV_timeline_semaphore(ctx) : !_mesa_has_EXT_semaphore(ctx)) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func);
|
||||
return;
|
||||
|
|
@ -831,10 +820,6 @@ _mesa_DeleteSemaphoresEXT(GLsizei n, const GLuint *semaphores)
|
|||
|
||||
const char *func = "glDeleteSemaphoresEXT";
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API)) {
|
||||
_mesa_debug(ctx, "%s(%d, %p)\n", func, n, semaphores);
|
||||
}
|
||||
|
||||
if (!_mesa_has_EXT_semaphore(ctx)) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -2908,19 +2908,6 @@ renderbuffer_storage_named(GLuint renderbuffer, GLenum internalFormat,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
if (samples == NO_SAMPLES)
|
||||
_mesa_debug(ctx, "%s(%u, %s, %d, %d)\n",
|
||||
func, renderbuffer,
|
||||
_mesa_enum_to_string(internalFormat),
|
||||
width, height);
|
||||
else
|
||||
_mesa_debug(ctx, "%s(%u, %s, %d, %d, %d)\n",
|
||||
func, renderbuffer,
|
||||
_mesa_enum_to_string(internalFormat),
|
||||
width, height, samples);
|
||||
}
|
||||
|
||||
struct gl_renderbuffer *rb = _mesa_lookup_renderbuffer(ctx, renderbuffer);
|
||||
if (!rb || rb == &DummyRenderbuffer) {
|
||||
/* ID was reserved, but no real renderbuffer object made yet */
|
||||
|
|
@ -2945,21 +2932,6 @@ renderbuffer_storage_target(GLenum target, GLenum internalFormat,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
if (samples == NO_SAMPLES)
|
||||
_mesa_debug(ctx, "%s(%s, %s, %d, %d)\n",
|
||||
func,
|
||||
_mesa_enum_to_string(target),
|
||||
_mesa_enum_to_string(internalFormat),
|
||||
width, height);
|
||||
else
|
||||
_mesa_debug(ctx, "%s(%s, %s, %d, %d, %d)\n",
|
||||
func,
|
||||
_mesa_enum_to_string(target),
|
||||
_mesa_enum_to_string(internalFormat),
|
||||
width, height, samples);
|
||||
}
|
||||
|
||||
if (target != GL_RENDERBUFFER_EXT) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "%s(target)", func);
|
||||
return;
|
||||
|
|
@ -3338,12 +3310,6 @@ bind_framebuffer(GLenum target, GLuint framebuffer)
|
|||
GLboolean bindReadBuf, bindDrawBuf;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx,
|
||||
"glBindFramebuffer(%s, %u)\n",
|
||||
_mesa_enum_to_string(target),
|
||||
framebuffer);
|
||||
|
||||
switch (target) {
|
||||
case GL_DRAW_FRAMEBUFFER_EXT:
|
||||
bindDrawBuf = GL_TRUE;
|
||||
|
|
@ -3644,10 +3610,6 @@ _mesa_CheckFramebufferStatus(GLenum target)
|
|||
struct gl_framebuffer *fb;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glCheckFramebufferStatus(%s)\n",
|
||||
_mesa_enum_to_string(target));
|
||||
|
||||
fb = get_framebuffer_target(ctx, target);
|
||||
if (!fb) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM,
|
||||
|
|
@ -5836,14 +5798,6 @@ _mesa_InvalidateFramebuffer(GLenum target, GLsizei numAttachments,
|
|||
struct gl_framebuffer *fb;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
for (unsigned i = 0; i < numAttachments; i++)
|
||||
_mesa_debug(ctx,
|
||||
"glInvalidateFramebuffer(%s, %s)\n",
|
||||
_mesa_enum_to_string(target),
|
||||
_mesa_enum_to_string(attachments[i]));
|
||||
}
|
||||
|
||||
fb = get_framebuffer_target(ctx, target);
|
||||
if (!fb) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM,
|
||||
|
|
|
|||
|
|
@ -573,9 +573,6 @@ _mesa_RenderMode( GLenum mode )
|
|||
GLint result;
|
||||
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, 0);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glRenderMode %s\n", _mesa_enum_to_string(mode));
|
||||
|
||||
FLUSH_VERTICES(ctx, _NEW_RENDERMODE | _NEW_FF_VERT_PROGRAM |
|
||||
_NEW_FF_FRAG_PROGRAM, 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -249,9 +249,6 @@ _get_vao_pointerv(GLenum pname, struct gl_vertex_array_object* vao,
|
|||
if (!params)
|
||||
return;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "%s %s\n", callerstr, _mesa_enum_to_string(pname));
|
||||
|
||||
switch (pname) {
|
||||
case GL_VERTEX_ARRAY_POINTER:
|
||||
if (!_mesa_is_desktop_gl_compat(ctx) && !_mesa_is_gles1(ctx))
|
||||
|
|
@ -361,9 +358,6 @@ _mesa_GetPointerIndexedvEXT( GLenum pname, GLuint index, GLvoid **params )
|
|||
if (!params)
|
||||
return;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "%s %s\n", "glGetPointerIndexedvEXT", _mesa_enum_to_string(pname));
|
||||
|
||||
switch (pname) {
|
||||
case GL_TEXTURE_COORD_ARRAY_POINTER:
|
||||
*params = (GLvoid *) ctx->Array.VAO->VertexAttrib[VERT_ATTRIB_TEX(index)].Ptr;
|
||||
|
|
@ -403,9 +397,6 @@ _mesa_GetError( void )
|
|||
e = GL_NO_ERROR;
|
||||
}
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glGetError <-- %s\n", _mesa_enum_to_string(e));
|
||||
|
||||
ctx->ErrorValue = (GLenum) GL_NO_ERROR;
|
||||
ctx->ErrorDebugCount = 0;
|
||||
return e;
|
||||
|
|
|
|||
|
|
@ -39,11 +39,6 @@ _mesa_Hint( GLenum target, GLenum mode )
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glHint %s %s\n",
|
||||
_mesa_enum_to_string(target),
|
||||
_mesa_enum_to_string(mode));
|
||||
|
||||
if (mode != GL_NICEST && mode != GL_FASTEST && mode != GL_DONT_CARE) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glHint(mode)");
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -41,9 +41,6 @@ _mesa_ShadeModel( GLenum mode )
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glShadeModel %s\n", _mesa_enum_to_string(mode));
|
||||
|
||||
if (ctx->Light.ShadeModel == mode)
|
||||
return;
|
||||
|
||||
|
|
@ -67,9 +64,6 @@ _mesa_ProvokingVertex(GLenum mode)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE&VERBOSE_API)
|
||||
_mesa_debug(ctx, "glProvokingVertexEXT 0x%x\n", mode);
|
||||
|
||||
if (ctx->Light.ProvokingVertex == mode)
|
||||
return;
|
||||
|
||||
|
|
@ -791,11 +785,6 @@ _mesa_ColorMaterial( GLenum face, GLenum mode )
|
|||
MAT_BIT_FRONT_DIFFUSE | MAT_BIT_BACK_DIFFUSE |
|
||||
MAT_BIT_FRONT_AMBIENT | MAT_BIT_BACK_AMBIENT);
|
||||
|
||||
if (MESA_VERBOSE&VERBOSE_API)
|
||||
_mesa_debug(ctx, "glColorMaterial %s %s\n",
|
||||
_mesa_enum_to_string(face),
|
||||
_mesa_enum_to_string(mode));
|
||||
|
||||
bitmask = _mesa_material_bitmask(ctx, face, mode, legal, "glColorMaterial");
|
||||
if (bitmask == 0)
|
||||
return; /* error was recorded */
|
||||
|
|
|
|||
|
|
@ -87,10 +87,6 @@ void GLAPIENTRY
|
|||
_mesa_LineWidth(GLfloat width)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glLineWidth %f\n", width);
|
||||
|
||||
line_width(ctx, width, false);
|
||||
}
|
||||
|
||||
|
|
@ -112,9 +108,6 @@ _mesa_LineStipple( GLint factor, GLushort pattern )
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glLineStipple %d %u\n", factor, pattern);
|
||||
|
||||
factor = CLAMP( factor, 1, 256 );
|
||||
|
||||
if (ctx->Line.StippleFactor == factor &&
|
||||
|
|
|
|||
|
|
@ -186,10 +186,6 @@ matrix_ortho(struct gl_matrix_stack* stack,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "%s(%f, %f, %f, %f, %f, %f)\n", caller,
|
||||
left, right, bottom, top, nearval, farval);
|
||||
|
||||
if (left == right ||
|
||||
bottom == top ||
|
||||
nearval == farval)
|
||||
|
|
@ -350,10 +346,6 @@ _mesa_PushMatrix( void )
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
struct gl_matrix_stack *stack = ctx->CurrentStack;
|
||||
|
||||
if (MESA_VERBOSE&VERBOSE_API)
|
||||
_mesa_debug(ctx, "glPushMatrix %s\n",
|
||||
_mesa_enum_to_string(ctx->Transform.MatrixMode));
|
||||
|
||||
push_matrix(ctx, stack, ctx->Transform.MatrixMode, "glPushMatrix");
|
||||
}
|
||||
|
||||
|
|
@ -409,10 +401,6 @@ _mesa_PopMatrix( void )
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
struct gl_matrix_stack *stack = ctx->CurrentStack;
|
||||
|
||||
if (MESA_VERBOSE&VERBOSE_API)
|
||||
_mesa_debug(ctx, "glPopMatrix %s\n",
|
||||
_mesa_enum_to_string(ctx->Transform.MatrixMode));
|
||||
|
||||
if (!pop_matrix(ctx, stack)) {
|
||||
if (ctx->Transform.MatrixMode == GL_TEXTURE) {
|
||||
_mesa_error(ctx, GL_STACK_UNDERFLOW,
|
||||
|
|
@ -475,9 +463,6 @@ _mesa_LoadIdentity( void )
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glLoadIdentity()\n");
|
||||
|
||||
_mesa_load_identity_matrix(ctx, ctx->CurrentStack);
|
||||
}
|
||||
|
||||
|
|
@ -513,14 +498,6 @@ matrix_load(struct gl_context *ctx, struct gl_matrix_stack *stack,
|
|||
const GLfloat *m, const char* caller)
|
||||
{
|
||||
if (!m) return;
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx,
|
||||
"%s(%f %f %f %f, %f %f %f %f, %f %f %f %f, %f %f %f %f\n",
|
||||
caller,
|
||||
m[0], m[4], m[8], m[12],
|
||||
m[1], m[5], m[9], m[13],
|
||||
m[2], m[6], m[10], m[14],
|
||||
m[3], m[7], m[11], m[15]);
|
||||
|
||||
_mesa_load_matrix(ctx, stack, m);
|
||||
}
|
||||
|
|
@ -575,15 +552,6 @@ matrix_mult(struct gl_matrix_stack *stack, const GLfloat *m, const char* caller)
|
|||
if (!m || (!ctx->GLThread.enabled && _mesa_matrix_is_identity(m)))
|
||||
return;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx,
|
||||
"%s(%f %f %f %f, %f %f %f %f, %f %f %f %f, %f %f %f %f\n",
|
||||
caller,
|
||||
m[0], m[4], m[8], m[12],
|
||||
m[1], m[5], m[9], m[13],
|
||||
m[2], m[6], m[10], m[14],
|
||||
m[3], m[7], m[11], m[15]);
|
||||
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
_math_matrix_mul_floats(stack->Top, m);
|
||||
stack->ChangedSincePush = true;
|
||||
|
|
|
|||
|
|
@ -3670,11 +3670,9 @@ extern int MESA_DEBUG_FLAGS;
|
|||
/** The MESA_VERBOSE var is a bitmask of these flags */
|
||||
enum _verbose
|
||||
{
|
||||
VERBOSE_TEXTURE = 0x0001,
|
||||
VERBOSE_MATERIAL = 0x0002,
|
||||
VERBOSE_STATE = 0x0004,
|
||||
VERBOSE_API = 0x0008,
|
||||
VERBOSE_DISPLAY_LIST = 0x0010,
|
||||
VERBOSE_MATERIAL = 0x0001,
|
||||
VERBOSE_STATE = 0x0002,
|
||||
VERBOSE_DISPLAY_LIST = 0x0004,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -720,9 +720,6 @@ _mesa_GenPerfMonitorsAMD(GLsizei n, GLuint *monitors)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glGenPerfMonitorsAMD(%d)\n", n);
|
||||
|
||||
init_groups(ctx);
|
||||
|
||||
if (n < 0) {
|
||||
|
|
@ -756,9 +753,6 @@ _mesa_DeletePerfMonitorsAMD(GLsizei n, GLuint *monitors)
|
|||
GLint i;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glDeletePerfMonitorsAMD(%d)\n", n);
|
||||
|
||||
if (n < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glDeletePerfMonitorsAMD(n < 0)");
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -295,10 +295,6 @@ _mesa_UseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program)
|
|||
struct gl_shader_program *shProg = NULL;
|
||||
GLbitfield any_valid_stages;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glUseProgramStages(%u, 0x%x, %u)\n",
|
||||
pipeline, stages, program);
|
||||
|
||||
if (!pipe) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glUseProgramStages(pipeline)");
|
||||
return;
|
||||
|
|
@ -435,10 +431,6 @@ void GLAPIENTRY
|
|||
_mesa_ActiveShaderProgram(GLuint pipeline, GLuint program)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glActiveShaderProgram(%u, %u)\n", pipeline, program);
|
||||
|
||||
active_shader_program(ctx, pipeline, program, false);
|
||||
}
|
||||
|
||||
|
|
@ -447,9 +439,6 @@ bind_program_pipeline(struct gl_context *ctx, GLuint pipeline, bool no_error)
|
|||
{
|
||||
struct gl_pipeline_object *newObj = NULL;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glBindProgramPipeline(%u)\n", pipeline);
|
||||
|
||||
/* Rebinding the same pipeline object: no change.
|
||||
*/
|
||||
if (ctx->_Shader->Name == pipeline)
|
||||
|
|
@ -563,9 +552,6 @@ _mesa_DeleteProgramPipelines(GLsizei n, const GLuint *pipelines)
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
GLsizei i;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glDeleteProgramPipelines(%d, %p)\n", n, pipelines);
|
||||
|
||||
if (n < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glDeleteProgramPipelines(n<0)");
|
||||
return;
|
||||
|
|
@ -658,10 +644,6 @@ void GLAPIENTRY
|
|||
_mesa_GenProgramPipelines(GLsizei n, GLuint *pipelines)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glGenProgramPipelines(%d, %p)\n", n, pipelines);
|
||||
|
||||
create_program_pipelines_err(ctx, n, pipelines, false);
|
||||
}
|
||||
|
||||
|
|
@ -676,10 +658,6 @@ void GLAPIENTRY
|
|||
_mesa_CreateProgramPipelines(GLsizei n, GLuint *pipelines)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glCreateProgramPipelines(%d, %p)\n", n, pipelines);
|
||||
|
||||
create_program_pipelines_err(ctx, n, pipelines, true);
|
||||
}
|
||||
|
||||
|
|
@ -695,9 +673,6 @@ _mesa_IsProgramPipeline(GLuint pipeline)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glIsProgramPipeline(%u)\n", pipeline);
|
||||
|
||||
struct gl_pipeline_object *obj = _mesa_lookup_pipeline_object(ctx, pipeline);
|
||||
if (obj == NULL)
|
||||
return GL_FALSE;
|
||||
|
|
@ -714,10 +689,6 @@ _mesa_GetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint *params)
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
struct gl_pipeline_object *pipe = _mesa_lookup_pipeline_object(ctx, pipeline);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glGetProgramPipelineiv(%u, %d, %p)\n",
|
||||
pipeline, pname, params);
|
||||
|
||||
/* Are geometry shaders available in this context?
|
||||
*/
|
||||
const bool has_gs = _mesa_has_geometry_shaders(ctx);
|
||||
|
|
@ -1051,9 +1022,6 @@ _mesa_ValidateProgramPipeline(GLuint pipeline)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glValidateProgramPipeline(%u)\n", pipeline);
|
||||
|
||||
struct gl_pipeline_object *pipe = _mesa_lookup_pipeline_object(ctx, pipeline);
|
||||
|
||||
if (!pipe) {
|
||||
|
|
@ -1072,10 +1040,6 @@ _mesa_GetProgramPipelineInfoLog(GLuint pipeline, GLsizei bufSize,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glGetProgramPipelineInfoLog(%u, %d, %p, %p)\n",
|
||||
pipeline, bufSize, length, infoLog);
|
||||
|
||||
struct gl_pipeline_object *pipe = _mesa_lookup_pipeline_object(ctx, pipeline);
|
||||
|
||||
if (!pipe) {
|
||||
|
|
|
|||
|
|
@ -86,10 +86,6 @@ void GLAPIENTRY
|
|||
_mesa_CullFace(GLenum mode)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glCullFace %s\n", _mesa_enum_to_string(mode));
|
||||
|
||||
cull_face(ctx, mode, false);
|
||||
}
|
||||
|
||||
|
|
@ -135,10 +131,6 @@ void GLAPIENTRY
|
|||
_mesa_FrontFace(GLenum mode)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glFrontFace %s\n", _mesa_enum_to_string(mode));
|
||||
|
||||
front_face(ctx, mode, false);
|
||||
}
|
||||
|
||||
|
|
@ -162,11 +154,6 @@ polygon_mode(struct gl_context *ctx, GLenum face, GLenum mode, bool no_error)
|
|||
ctx->Polygon.FrontMode == GL_FILL_RECTANGLE_NV ||
|
||||
ctx->Polygon.BackMode == GL_FILL_RECTANGLE_NV;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glPolygonMode %s %s\n",
|
||||
_mesa_enum_to_string(face),
|
||||
_mesa_enum_to_string(mode));
|
||||
|
||||
if (!no_error) {
|
||||
switch (mode) {
|
||||
case GL_POINT:
|
||||
|
|
@ -256,9 +243,6 @@ _mesa_PolygonStipple(const GLubyte *pattern)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glPolygonStipple\n");
|
||||
|
||||
FLUSH_VERTICES(ctx, 0, GL_POLYGON_STIPPLE_BIT);
|
||||
ST_SET_STATE(ctx->NewDriverState, ST_NEW_POLY_STIPPLE);
|
||||
|
||||
|
|
@ -284,9 +268,6 @@ _mesa_GetnPolygonStippleARB( GLsizei bufSize, GLubyte *dest )
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE&VERBOSE_API)
|
||||
_mesa_debug(ctx, "glGetPolygonStipple\n");
|
||||
|
||||
if (ctx->Pack.BufferObj)
|
||||
ctx->Pack.BufferObj->UsageHistory |= USAGE_PIXEL_PACK_BUFFER;
|
||||
|
||||
|
|
@ -330,10 +311,6 @@ void GLAPIENTRY
|
|||
_mesa_PolygonOffset( GLfloat factor, GLfloat units )
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE&VERBOSE_API)
|
||||
_mesa_debug(ctx, "glPolygonOffset %f %f\n", factor, units);
|
||||
|
||||
_mesa_polygon_offset_clamp(ctx, factor, units, 0.0);
|
||||
}
|
||||
|
||||
|
|
@ -348,9 +325,6 @@ _mesa_PolygonOffsetClampEXT( GLfloat factor, GLfloat units, GLfloat clamp )
|
|||
return;
|
||||
}
|
||||
|
||||
if (MESA_VERBOSE&VERBOSE_API)
|
||||
_mesa_debug(ctx, "glPolygonOffsetClamp %f %f %f\n", factor, units, clamp);
|
||||
|
||||
_mesa_polygon_offset_clamp(ctx, factor, units, clamp);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -95,12 +95,6 @@ _mesa_GetProgramInterfaceiv(GLuint program, GLenum programInterface,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
_mesa_debug(ctx, "glGetProgramInterfaceiv(%u, %s, %s, %p)\n",
|
||||
program, _mesa_enum_to_string(programInterface),
|
||||
_mesa_enum_to_string(pname), params);
|
||||
}
|
||||
|
||||
struct gl_shader_program *shProg =
|
||||
_mesa_lookup_shader_program_err(ctx, program,
|
||||
"glGetProgramInterfaceiv");
|
||||
|
|
@ -152,11 +146,6 @@ _mesa_GetProgramResourceIndex(GLuint program, GLenum programInterface,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
_mesa_debug(ctx, "glGetProgramResourceIndex(%u, %s, %s)\n",
|
||||
program, _mesa_enum_to_string(programInterface), name);
|
||||
}
|
||||
|
||||
unsigned array_index = 0;
|
||||
struct gl_program_resource *res;
|
||||
struct gl_shader_program *shProg =
|
||||
|
|
@ -227,12 +216,6 @@ _mesa_GetProgramResourceName(GLuint program, GLenum programInterface,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
_mesa_debug(ctx, "glGetProgramResourceName(%u, %s, %u, %d, %p, %p)\n",
|
||||
program, _mesa_enum_to_string(programInterface), index,
|
||||
bufSize, length, name);
|
||||
}
|
||||
|
||||
struct gl_shader_program *shProg =
|
||||
_mesa_lookup_shader_program_err(ctx, program,
|
||||
"glGetProgramResourceName");
|
||||
|
|
@ -261,12 +244,6 @@ _mesa_GetProgramResourceiv(GLuint program, GLenum programInterface,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
_mesa_debug(ctx, "glGetProgramResourceiv(%u, %s, %u, %d, %p, %d, %p, %p)\n",
|
||||
program, _mesa_enum_to_string(programInterface), index,
|
||||
propCount, props, bufSize, length, params);
|
||||
}
|
||||
|
||||
struct gl_shader_program *shProg =
|
||||
_mesa_lookup_shader_program_err(ctx, program, "glGetProgramResourceiv");
|
||||
|
||||
|
|
@ -292,11 +269,6 @@ _mesa_GetProgramResourceLocation(GLuint program, GLenum programInterface,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
_mesa_debug(ctx, "glGetProgramResourceLocation(%u, %s, %s)\n",
|
||||
program, _mesa_enum_to_string(programInterface), name);
|
||||
}
|
||||
|
||||
struct gl_shader_program *shProg =
|
||||
lookup_linked_program(program, "glGetProgramResourceLocation");
|
||||
|
||||
|
|
@ -353,11 +325,6 @@ _mesa_GetProgramResourceLocationIndex(GLuint program, GLenum programInterface,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
_mesa_debug(ctx, "glGetProgramResourceLocationIndex(%u, %s, %s)\n",
|
||||
program, _mesa_enum_to_string(programInterface), name);
|
||||
}
|
||||
|
||||
struct gl_shader_program *shProg =
|
||||
lookup_linked_program(program, "glGetProgramResourceLocationIndex");
|
||||
|
||||
|
|
|
|||
|
|
@ -613,9 +613,6 @@ create_queries(struct gl_context *ctx, GLenum target, GLsizei n, GLuint *ids,
|
|||
{
|
||||
const char *func = dsa ? "glGenQueries" : "glCreateQueries";
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "%s(%d)\n", func, n);
|
||||
|
||||
if (n < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "%s(n < 0)", func);
|
||||
return;
|
||||
|
|
@ -667,9 +664,6 @@ _mesa_DeleteQueries(GLsizei n, const GLuint *ids)
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glDeleteQueries(%d)\n", n);
|
||||
|
||||
if (n < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glDeleteQueriesARB(n < 0)");
|
||||
return;
|
||||
|
|
@ -705,9 +699,6 @@ _mesa_IsQuery(GLuint id)
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glIsQuery(%u)\n", id);
|
||||
|
||||
if (id == 0)
|
||||
return GL_FALSE;
|
||||
|
||||
|
|
@ -746,10 +737,6 @@ _mesa_BeginQueryIndexed(GLenum target, GLuint index, GLuint id)
|
|||
struct gl_query_object *q, **bindpt;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glBeginQueryIndexed(%s, %u, %u)\n",
|
||||
_mesa_enum_to_string(target), index, id);
|
||||
|
||||
if (!query_error_check_index(ctx, target, index))
|
||||
return;
|
||||
|
||||
|
|
@ -852,10 +839,6 @@ _mesa_EndQueryIndexed(GLenum target, GLuint index)
|
|||
struct gl_query_object *q, **bindpt;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glEndQueryIndexed(%s, %u)\n",
|
||||
_mesa_enum_to_string(target), index);
|
||||
|
||||
if (!query_error_check_index(ctx, target, index))
|
||||
return;
|
||||
|
||||
|
|
@ -909,10 +892,6 @@ _mesa_QueryCounter(GLuint id, GLenum target)
|
|||
struct gl_query_object *q;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glQueryCounter(%u, %s)\n", id,
|
||||
_mesa_enum_to_string(target));
|
||||
|
||||
/* error checking */
|
||||
if (target != GL_TIMESTAMP) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glQueryCounter(target)");
|
||||
|
|
@ -980,12 +959,6 @@ _mesa_GetQueryIndexediv(GLenum target, GLuint index, GLenum pname,
|
|||
struct gl_query_object *q = NULL, **bindpt = NULL;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glGetQueryIndexediv(%s, %u, %s)\n",
|
||||
_mesa_enum_to_string(target),
|
||||
index,
|
||||
_mesa_enum_to_string(pname));
|
||||
|
||||
if (!query_error_check_index(ctx, target, index))
|
||||
return;
|
||||
|
||||
|
|
@ -1136,10 +1109,6 @@ get_query_object(struct gl_context *ctx, const char *func,
|
|||
struct gl_query_object *q = NULL;
|
||||
uint64_t value;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "%s(%u, %s)\n", func, id,
|
||||
_mesa_enum_to_string(pname));
|
||||
|
||||
if (id)
|
||||
q = _mesa_lookup_query_object(ctx, id);
|
||||
|
||||
|
|
|
|||
|
|
@ -1055,13 +1055,6 @@ read_pixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
|
|||
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glReadPixels(%d, %d, %s, %s, %p)\n",
|
||||
width, height,
|
||||
_mesa_enum_to_string(format),
|
||||
_mesa_enum_to_string(type),
|
||||
pixels);
|
||||
|
||||
if (!no_error && (width < 0 || height < 0)) {
|
||||
_mesa_error( ctx, GL_INVALID_VALUE,
|
||||
"glReadPixels(width=%d height=%d)", width, height );
|
||||
|
|
|
|||
|
|
@ -202,10 +202,6 @@ static void
|
|||
create_samplers_err(struct gl_context *ctx, GLsizei count, GLuint *samplers,
|
||||
const char *caller)
|
||||
{
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "%s(%d)\n", caller, count);
|
||||
|
||||
if (count < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "%s(n<0)", caller);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -96,9 +96,6 @@ _mesa_Scissor(GLint x, GLint y, GLsizei width, GLsizei height)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glScissor %d %d %d %d\n", x, y, width, height);
|
||||
|
||||
if (width < 0 || height < 0) {
|
||||
_mesa_error( ctx, GL_INVALID_VALUE, "glScissor" );
|
||||
return;
|
||||
|
|
@ -200,10 +197,6 @@ scissor_indexed_err(struct gl_context *ctx, GLuint index, GLint left,
|
|||
GLint bottom, GLsizei width, GLsizei height,
|
||||
const char *function)
|
||||
{
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "%s(%d, %d, %d, %d, %d)\n",
|
||||
function, index, left, bottom, width, height);
|
||||
|
||||
if (index >= ctx->Const.MaxViewports) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE,
|
||||
"%s: index (%d) >= MaxViewports (%d)",
|
||||
|
|
@ -260,10 +253,6 @@ _mesa_WindowRectanglesEXT(GLenum mode, GLsizei count, const GLint *box)
|
|||
struct gl_scissor_rect newval[MAX_WINDOW_RECTANGLES];
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glWindowRectanglesEXT(%s, %d, %p)\n",
|
||||
_mesa_enum_to_string(mode), count, box);
|
||||
|
||||
if (mode != GL_INCLUSIVE_EXT && mode != GL_EXCLUSIVE_EXT) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM,
|
||||
"glWindowRectanglesEXT(invalid mode 0x%x)", mode);
|
||||
|
|
|
|||
|
|
@ -1656,8 +1656,6 @@ void GLAPIENTRY
|
|||
_mesa_CompileShader(GLuint shaderObj)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glCompileShader %u\n", shaderObj);
|
||||
_mesa_compile_shader(ctx, _mesa_lookup_shader_err(ctx, shaderObj,
|
||||
"glCompileShader"));
|
||||
}
|
||||
|
|
@ -1675,10 +1673,6 @@ GLuint GLAPIENTRY
|
|||
_mesa_CreateShader(GLenum type)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glCreateShader %s\n", _mesa_enum_to_string(type));
|
||||
|
||||
return create_shader_err(ctx, type, "glCreateShader");
|
||||
}
|
||||
|
||||
|
|
@ -1703,8 +1697,6 @@ GLuint GLAPIENTRY
|
|||
_mesa_CreateProgram(void)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glCreateProgram\n");
|
||||
return create_shader_program(ctx);
|
||||
}
|
||||
|
||||
|
|
@ -1720,11 +1712,6 @@ _mesa_CreateProgramObjectARB(void)
|
|||
void GLAPIENTRY
|
||||
_mesa_DeleteObjectARB(GLhandleARB obj)
|
||||
{
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
_mesa_debug(ctx, "glDeleteObjectARB(%lu)\n", (unsigned long)obj);
|
||||
}
|
||||
|
||||
if (obj) {
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
|
|
@ -1950,9 +1937,6 @@ _mesa_LinkProgram(GLuint programObj)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glLinkProgram %u\n", programObj);
|
||||
|
||||
struct gl_shader_program *shProg =
|
||||
_mesa_lookup_shader_program_err(ctx, programObj, "glLinkProgram");
|
||||
link_program_error(ctx, shProg);
|
||||
|
|
@ -2221,9 +2205,6 @@ use_program(GLuint program, bool no_error)
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
struct gl_shader_program *shProg = NULL;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glUseProgram %u\n", program);
|
||||
|
||||
if (no_error) {
|
||||
if (program) {
|
||||
shProg = _mesa_lookup_shader_program(ctx, program);
|
||||
|
|
|
|||
|
|
@ -111,9 +111,6 @@ _mesa_ClearStencil( GLint s )
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glClearStencil(%d)\n", s);
|
||||
|
||||
ctx->PopAttribState |= GL_STENCIL_BUFFER_BIT;
|
||||
ctx->Stencil.Clear = (GLuint) s;
|
||||
}
|
||||
|
|
@ -138,9 +135,6 @@ _mesa_StencilFuncSeparateATI( GLenum frontfunc, GLenum backfunc, GLint ref, GLui
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glStencilFuncSeparateATI()\n");
|
||||
|
||||
if (!validate_stencil_func(ctx, frontfunc)) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM,
|
||||
"glStencilFuncSeparateATI(frontfunc)");
|
||||
|
|
@ -229,9 +223,6 @@ _mesa_StencilFunc(GLenum func, GLint ref, GLuint mask)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glStencilFunc()\n");
|
||||
|
||||
if (!validate_stencil_func(ctx, func)) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glStencilFunc(func)");
|
||||
return;
|
||||
|
|
@ -258,9 +249,6 @@ _mesa_StencilMask( GLuint mask )
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
const GLint face = ctx->Stencil.ActiveFace;
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glStencilMask(0x%x)\n", mask);
|
||||
|
||||
if (face != 0) {
|
||||
/* Only modify the EXT_stencil_two_side back-face state.
|
||||
*/
|
||||
|
|
@ -344,9 +332,6 @@ _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glStencilOp()\n");
|
||||
|
||||
if (!validate_stencil_op(ctx, fail)) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glStencilOp(sfail)");
|
||||
return;
|
||||
|
|
@ -372,9 +357,6 @@ _mesa_ActiveStencilFaceEXT(GLenum face)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glActiveStencilFaceEXT()\n");
|
||||
|
||||
if (!ctx->Extensions.EXT_stencil_two_side) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glActiveStencilFaceEXT");
|
||||
return;
|
||||
|
|
@ -435,9 +417,6 @@ _mesa_StencilOpSeparate(GLenum face, GLenum sfail, GLenum zfail, GLenum zpass)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glStencilOpSeparate()\n");
|
||||
|
||||
if (!validate_stencil_op(ctx, sfail)) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glStencilOpSeparate(sfail)");
|
||||
return;
|
||||
|
|
@ -500,9 +479,6 @@ _mesa_StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glStencilFuncSeparate()\n");
|
||||
|
||||
if (face != GL_FRONT && face != GL_BACK && face != GL_FRONT_AND_BACK) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glStencilFuncSeparate(face)");
|
||||
return;
|
||||
|
|
@ -547,9 +523,6 @@ _mesa_StencilMaskSeparate(GLenum face, GLuint mask)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glStencilMaskSeparate()\n");
|
||||
|
||||
if (face != GL_FRONT && face != GL_BACK && face != GL_FRONT_AND_BACK) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glStencilaMaskSeparate(face)");
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -493,13 +493,6 @@ _mesa_texenvfv_indexed( struct gl_context* ctx, GLuint texunit, GLenum target,
|
|||
_mesa_enum_to_string(target));
|
||||
return;
|
||||
}
|
||||
|
||||
if (MESA_VERBOSE&(VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glTexEnv %s %s %.1f(%s) ...\n",
|
||||
_mesa_enum_to_string(target),
|
||||
_mesa_enum_to_string(pname),
|
||||
*param,
|
||||
_mesa_enum_to_string((GLenum) iparam0));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1406,15 +1406,6 @@ get_texture_image(struct gl_context *ctx,
|
|||
return;
|
||||
}
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API | VERBOSE_TEXTURE)) {
|
||||
_mesa_debug(ctx, "%s(tex %u) format = %s, w=%d, h=%d,"
|
||||
" dstFmt=0x%x, dstType=0x%x\n",
|
||||
caller, texObj->Name,
|
||||
_mesa_get_format_name(texImage->TexFormat),
|
||||
texImage->Width, texImage->Height,
|
||||
format, type);
|
||||
}
|
||||
|
||||
if (target == GL_TEXTURE_CUBE_MAP) {
|
||||
/* Compute stride between cube faces */
|
||||
imageStride = _mesa_image_image_stride(&ctx->Pack, width, height,
|
||||
|
|
@ -1782,14 +1773,6 @@ get_compressed_texture_image(struct gl_context *ctx,
|
|||
if (_mesa_is_zero_size_texture(texImage))
|
||||
return;
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API | VERBOSE_TEXTURE)) {
|
||||
_mesa_debug(ctx,
|
||||
"%s(tex %u) format = %s, w=%d, h=%d\n",
|
||||
caller, texObj->Name,
|
||||
_mesa_get_format_name(texImage->TexFormat),
|
||||
texImage->Width, texImage->Height);
|
||||
}
|
||||
|
||||
if (target == GL_TEXTURE_CUBE_MAP) {
|
||||
struct compressed_pixelstore store;
|
||||
|
||||
|
|
|
|||
|
|
@ -3118,25 +3118,6 @@ teximage(struct gl_context *ctx, GLboolean compressed, GLuint dims,
|
|||
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE)) {
|
||||
if (compressed)
|
||||
_mesa_debug(ctx,
|
||||
"glCompressedTexImage%uD %s %d %s %d %d %d %d %p\n",
|
||||
dims,
|
||||
_mesa_enum_to_string(target), level,
|
||||
_mesa_enum_to_string(internalFormat),
|
||||
width, height, depth, border, pixels);
|
||||
else
|
||||
_mesa_debug(ctx,
|
||||
"glTexImage%uD %s %d %s %d %d %d %d %s %s %p\n",
|
||||
dims,
|
||||
_mesa_enum_to_string(target), level,
|
||||
_mesa_enum_to_string(internalFormat),
|
||||
width, height, depth, border,
|
||||
_mesa_enum_to_string(format),
|
||||
_mesa_enum_to_string(type), pixels);
|
||||
}
|
||||
|
||||
internalFormat = override_internal_format(internalFormat, width, height);
|
||||
|
||||
if (!no_error &&
|
||||
|
|
@ -3853,14 +3834,6 @@ texsubimage_err(struct gl_context *ctx, GLuint dims, GLenum target, GLint level,
|
|||
texImage = _mesa_select_tex_image(texObj, target, level);
|
||||
/* texsubimage_error_check ensures that texImage is not NULL */
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glTexSubImage%uD %s %d %d %d %d %d %d %d %s %s %p\n",
|
||||
dims,
|
||||
_mesa_enum_to_string(target), level,
|
||||
xoffset, yoffset, zoffset, width, height, depth,
|
||||
_mesa_enum_to_string(format),
|
||||
_mesa_enum_to_string(type), pixels);
|
||||
|
||||
texture_sub_image(ctx, dims, texObj, texImage, target, level,
|
||||
xoffset, yoffset, zoffset, width, height, depth,
|
||||
format, type, pixels);
|
||||
|
|
@ -3901,14 +3874,6 @@ texturesubimage(struct gl_context *ctx, GLuint dims,
|
|||
struct gl_texture_image *texImage;
|
||||
int i;
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx,
|
||||
"glTextureSubImage%uD %d %d %d %d %d %d %d %d %s %s %p\n",
|
||||
dims, texture, level,
|
||||
xoffset, yoffset, zoffset, width, height, depth,
|
||||
_mesa_enum_to_string(format),
|
||||
_mesa_enum_to_string(type), pixels);
|
||||
|
||||
/* Get the texture object by Name. */
|
||||
if (!no_error) {
|
||||
if (!ext_dsa) {
|
||||
|
|
@ -4464,11 +4429,6 @@ copy_texture_sub_image_err(struct gl_context *ctx, GLuint dims,
|
|||
{
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "%s %s %d %d %d %d %d %d %d %d\n", caller,
|
||||
_mesa_enum_to_string(target),
|
||||
level, xoffset, yoffset, zoffset, x, y, width, height);
|
||||
|
||||
_mesa_update_pixel(ctx);
|
||||
|
||||
if (ctx->NewState & _NEW_BUFFERS)
|
||||
|
|
@ -4520,13 +4480,6 @@ copyteximage(struct gl_context *ctx, GLuint dims, struct gl_texture_object *texO
|
|||
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glCopyTexImage%uD %s %d %s %d %d %d %d %d\n",
|
||||
dims,
|
||||
_mesa_enum_to_string(target), level,
|
||||
_mesa_enum_to_string(internalFormat),
|
||||
x, y, width, height, border);
|
||||
|
||||
_mesa_update_pixel(ctx);
|
||||
|
||||
if (ctx->NewState & _NEW_BUFFERS)
|
||||
|
|
@ -7025,11 +6978,6 @@ texture_image_multisample(struct gl_context *ctx, GLuint dims,
|
|||
GLenum sample_count_error;
|
||||
bool dsa = strstr(func, "ture") ? true : false;
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE)) {
|
||||
_mesa_debug(ctx, "%s(target=%s, samples=%d, internalformat=%s)\n", func,
|
||||
_mesa_enum_to_string(target), samples, _mesa_enum_to_string(internalformat));
|
||||
}
|
||||
|
||||
if (!((ctx->Extensions.ARB_texture_multisample
|
||||
&& _mesa_is_desktop_gl(ctx))) && !_mesa_is_gles31(ctx)) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func);
|
||||
|
|
|
|||
|
|
@ -1249,9 +1249,6 @@ static void
|
|||
create_textures_err(struct gl_context *ctx, GLenum target,
|
||||
GLsizei n, GLuint *textures, const char *caller)
|
||||
{
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "%s %d\n", caller, n);
|
||||
|
||||
if (n < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "%s(n < 0)", caller);
|
||||
return;
|
||||
|
|
@ -1537,9 +1534,6 @@ _mesa_DeleteTextures(GLsizei n, const GLuint *textures)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glDeleteTextures %d\n", n);
|
||||
|
||||
if (n < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glDeleteTextures(n < 0)");
|
||||
return;
|
||||
|
|
@ -1788,10 +1782,6 @@ _mesa_BindTexture(GLenum target, GLuint texName)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glBindTexture %s %d\n",
|
||||
_mesa_enum_to_string(target), (GLint) texName);
|
||||
|
||||
bind_texture(ctx, target, texName, ctx->Texture.CurrentUnit, false,
|
||||
"glBindTexture");
|
||||
}
|
||||
|
|
@ -1810,10 +1800,6 @@ _mesa_BindMultiTextureEXT(GLenum texunit, GLenum target, GLuint texture)
|
|||
return;
|
||||
}
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glBindMultiTextureEXT %s %d\n",
|
||||
_mesa_enum_to_string(texunit), (GLint) texture);
|
||||
|
||||
bind_texture(ctx, target, texture, unit, false, "glBindMultiTextureEXT");
|
||||
}
|
||||
|
||||
|
|
@ -1889,10 +1875,6 @@ _mesa_BindTextureUnit(GLuint unit, GLuint texture)
|
|||
return;
|
||||
}
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glBindTextureUnit %s %d\n",
|
||||
_mesa_enum_to_string(GL_TEXTURE0+unit), (GLint) texture);
|
||||
|
||||
bind_texture_unit(ctx, unit, texture, false);
|
||||
}
|
||||
|
||||
|
|
@ -2018,10 +2000,6 @@ _mesa_PrioritizeTextures( GLsizei n, const GLuint *texName,
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
GLint i;
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glPrioritizeTextures %d\n", n);
|
||||
|
||||
|
||||
if (n < 0) {
|
||||
_mesa_error( ctx, GL_INVALID_VALUE, "glPrioritizeTextures" );
|
||||
return;
|
||||
|
|
@ -2065,9 +2043,6 @@ _mesa_AreTexturesResident(GLsizei n, const GLuint *texName,
|
|||
GLint i;
|
||||
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE);
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glAreTexturesResident %d\n", n);
|
||||
|
||||
if (n < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glAreTexturesResident(n)");
|
||||
return GL_FALSE;
|
||||
|
|
@ -2113,9 +2088,6 @@ _mesa_IsTexture( GLuint texture )
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE);
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glIsTexture %d\n", texture);
|
||||
|
||||
if (!texture)
|
||||
return GL_FALSE;
|
||||
|
||||
|
|
@ -2179,9 +2151,6 @@ _mesa_InvalidateTexSubImage(GLuint texture, GLint level, GLint xoffset,
|
|||
struct gl_texture_image *image;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glInvalidateTexSubImage %d\n", texture);
|
||||
|
||||
t = invalidate_tex_image_error_check(ctx, texture, level,
|
||||
"glInvalidateTexSubImage");
|
||||
|
||||
|
|
@ -2329,9 +2298,6 @@ _mesa_InvalidateTexImage(GLuint texture, GLint level)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glInvalidateTexImage(%d, %d)\n", texture, level);
|
||||
|
||||
invalidate_tex_image_error_check(ctx, texture, level,
|
||||
"glInvalidateTexImage");
|
||||
|
||||
|
|
|
|||
|
|
@ -297,10 +297,6 @@ active_texture(GLenum texture, bool no_error)
|
|||
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glActiveTexture %s\n",
|
||||
_mesa_enum_to_string(texture));
|
||||
|
||||
if (ctx->Texture.CurrentUnit == texUnit)
|
||||
return;
|
||||
|
||||
|
|
@ -358,10 +354,6 @@ _mesa_ClientActiveTexture(GLenum texture)
|
|||
GET_CURRENT_CONTEXT(ctx);
|
||||
GLuint texUnit = texture - GL_TEXTURE0;
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API | VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glClientActiveTexture %s\n",
|
||||
_mesa_enum_to_string(texture));
|
||||
|
||||
if (ctx->Array.ActiveTexture == texUnit)
|
||||
return;
|
||||
|
||||
|
|
|
|||
|
|
@ -692,12 +692,6 @@ texstorage_error(GLuint dims, GLenum target, GLsizei levels,
|
|||
return;
|
||||
}
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "%s %s %d %s %d %d %d\n", caller,
|
||||
_mesa_enum_to_string(target), levels,
|
||||
_mesa_enum_to_string(internalformat),
|
||||
width, height, depth);
|
||||
|
||||
/* Check the format to make sure it is sized. */
|
||||
if (!_mesa_is_legal_tex_storage_format(ctx, internalformat)) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM,
|
||||
|
|
@ -739,12 +733,6 @@ texturestorage_error(GLuint dims, GLuint texture, GLsizei levels,
|
|||
struct gl_texture_object *texObj;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "%s %d %d %s %d %d %d\n",
|
||||
caller, texture, levels,
|
||||
_mesa_enum_to_string(internalformat),
|
||||
width, height, depth);
|
||||
|
||||
/* Check the format to make sure it is sized. */
|
||||
if (!_mesa_is_legal_tex_storage_format(ctx, internalformat)) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM,
|
||||
|
|
|
|||
|
|
@ -754,12 +754,6 @@ _mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture,
|
|||
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & (VERBOSE_API | VERBOSE_TEXTURE))
|
||||
_mesa_debug(ctx, "glTextureView %d %s %d %s %d %d %d %d\n",
|
||||
texture, _mesa_enum_to_string(target), origtexture,
|
||||
_mesa_enum_to_string(internalformat),
|
||||
minlevel, numlevels, minlayer, numlayers);
|
||||
|
||||
if (origtexture == 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glTextureView(origtexture = %u)",
|
||||
origtexture);
|
||||
|
|
|
|||
|
|
@ -3003,9 +3003,6 @@ _mesa_LockArraysEXT(GLint first, GLsizei count)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glLockArrays %d %d\n", first, count);
|
||||
|
||||
if (first < 0) {
|
||||
_mesa_error( ctx, GL_INVALID_VALUE, "glLockArraysEXT(first)" );
|
||||
return;
|
||||
|
|
@ -3029,9 +3026,6 @@ _mesa_UnlockArraysEXT( void )
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glUnlockArrays\n");
|
||||
|
||||
if (ctx->Array.LockCount == 0) {
|
||||
_mesa_error( ctx, GL_INVALID_OPERATION, "glUnlockArraysEXT(reexit)" );
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -139,9 +139,6 @@ _mesa_Viewport(GLint x, GLint y, GLsizei width, GLsizei height)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glViewport %d %d %d %d\n", x, y, width, height);
|
||||
|
||||
if (width < 0 || height < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE,
|
||||
"glViewport(%d, %d, %d, %d)", x, y, width, height);
|
||||
|
|
@ -205,9 +202,6 @@ _mesa_ViewportArrayv(GLuint first, GLsizei count, const GLfloat *v)
|
|||
struct gl_viewport_inputs *p = (struct gl_viewport_inputs *)v;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glViewportArrayv %d %d\n", first, count);
|
||||
|
||||
if ((first + count) > ctx->Const.MaxViewports) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE,
|
||||
"glViewportArrayv: first (%d) + count (%d) > MaxViewports "
|
||||
|
|
@ -234,10 +228,6 @@ static void
|
|||
viewport_indexed_err(struct gl_context *ctx, GLuint index, GLfloat x, GLfloat y,
|
||||
GLfloat w, GLfloat h, const char *function)
|
||||
{
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "%s(%d, %f, %f, %f, %f)\n",
|
||||
function, index, x, y, w, h);
|
||||
|
||||
if (index >= ctx->Const.MaxViewports) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE,
|
||||
"%s: index (%d) >= MaxViewports (%d)",
|
||||
|
|
@ -324,9 +314,6 @@ _mesa_DepthRange(GLclampd nearval, GLclampd farval)
|
|||
unsigned i;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE&VERBOSE_API)
|
||||
_mesa_debug(ctx, "glDepthRange %f %f\n", nearval, farval);
|
||||
|
||||
/* The GL_ARB_viewport_array spec says:
|
||||
*
|
||||
* "DepthRange sets the depth range for all viewports to the same
|
||||
|
|
@ -381,9 +368,6 @@ _mesa_DepthRangeArrayv(GLuint first, GLsizei count, const GLclampd *v)
|
|||
(struct gl_depthrange_inputs *) v;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glDepthRangeArrayv %d %d\n", first, count);
|
||||
|
||||
if ((first + count) > ctx->Const.MaxViewports) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE,
|
||||
"glDepthRangev: first (%d) + count (%d) >= MaxViewports (%d)",
|
||||
|
|
@ -400,9 +384,6 @@ _mesa_DepthRangeArrayfvOES(GLuint first, GLsizei count, const GLfloat *v)
|
|||
int i;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glDepthRangeArrayfv %d %d\n", first, count);
|
||||
|
||||
if ((first + count) > ctx->Const.MaxViewports) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE,
|
||||
"glDepthRangeArrayfv: first (%d) + count (%d) >= MaxViewports (%d)",
|
||||
|
|
@ -437,10 +418,6 @@ _mesa_DepthRangeIndexed(GLuint index, GLclampd nearval, GLclampd farval)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glDepthRangeIndexed(%d, %f, %f)\n",
|
||||
index, nearval, farval);
|
||||
|
||||
if (index >= ctx->Const.MaxViewports) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE,
|
||||
"glDepthRangeIndexed: index (%d) >= MaxViewports (%d)",
|
||||
|
|
@ -539,11 +516,6 @@ _mesa_ClipControl(GLenum origin, GLenum depth)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glClipControl(%s, %s)\n",
|
||||
_mesa_enum_to_string(origin),
|
||||
_mesa_enum_to_string(depth));
|
||||
|
||||
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
||||
|
||||
if (!ctx->Extensions.ARB_clip_control) {
|
||||
|
|
@ -592,9 +564,6 @@ _mesa_get_viewport_xform(struct gl_context *ctx, unsigned i,
|
|||
static void
|
||||
subpixel_precision_bias(struct gl_context *ctx, GLuint xbits, GLuint ybits)
|
||||
{
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glSubpixelPrecisionBiasNV(%u, %u)\n", xbits, ybits);
|
||||
|
||||
FLUSH_VERTICES(ctx, 0, GL_VIEWPORT_BIT);
|
||||
|
||||
ctx->SubpixelPrecisionBias[0] = xbits;
|
||||
|
|
@ -607,10 +576,6 @@ void GLAPIENTRY
|
|||
_mesa_SubpixelPrecisionBiasNV_no_error(GLuint xbits, GLuint ybits)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glSubpixelPrecisionBiasNV(%u, %u)\n", xbits, ybits);
|
||||
|
||||
subpixel_precision_bias(ctx, xbits, ybits);
|
||||
}
|
||||
|
||||
|
|
@ -618,10 +583,6 @@ void GLAPIENTRY
|
|||
_mesa_SubpixelPrecisionBiasNV(GLuint xbits, GLuint ybits)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glSubpixelPrecisionBiasNV(%u, %u)\n", xbits, ybits);
|
||||
|
||||
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
||||
|
||||
if (!ctx->Extensions.NV_conservative_raster) {
|
||||
|
|
@ -671,10 +632,6 @@ _mesa_ViewportSwizzleNV_no_error(GLuint index,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glViewportSwizzleNV(%x, %x, %x, %x)\n",
|
||||
swizzlex, swizzley, swizzlez, swizzlew);
|
||||
|
||||
set_viewport_swizzle(ctx, index, swizzlex, swizzley, swizzlez, swizzlew);
|
||||
}
|
||||
|
||||
|
|
@ -692,10 +649,6 @@ _mesa_ViewportSwizzleNV(GLuint index,
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glViewportSwizzleNV(%x, %x, %x, %x)\n",
|
||||
swizzlex, swizzley, swizzlez, swizzlew);
|
||||
|
||||
if (!ctx->Extensions.NV_viewport_swizzle) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"glViewportSwizzleNV not supported");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue