search for: glenum

Displaying 15 results from an estimated 15 matches for "glenum".

Did you mean: glennm
2005 Jul 19
0
Problems in rgl on MacOS X
...9;int*' to 'GLint*' make: *** [scene.o] Error 1 ERROR: compilation failed for package 'rgl' The compilers complaint appears to be legitimate in gl.h there is: ...... typedef short GLshort; typedef long GLint; typedef long GLsizei; ........ extern void glGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params); extern void glGetIntegerv (GLenum pname, GLint *params); extern void glGetLightfv (GLenum light, GLenum pname, GLfloat *params); ............. and in scene.cpp the relevant lines read: .......... unsigned int maxSize; glGetIntegerv(GL_MAX_TEXTURE_S...
2012 Apr 06
1
[WIP PATCH] dri/nouveau: Add S3TC support for nv20.
....pitch = width * s->cpp, + .pitch = pitch, }; offset += size; @@ -458,8 +494,10 @@ nouveau_teximage(struct gl_context *ctx, GLint dims, struct gl_texture_image *ti, GLint internalFormat, GLint width, GLint height, GLint depth, GLint border, + GLsizei imageSize, GLenum format, GLenum type, const GLvoid *pixels, - const struct gl_pixelstore_attrib *packing) + const struct gl_pixelstore_attrib *packing, + GLboolean compressed) { struct gl_texture_object *t = ti->TexObject; const GLuint level = ti->Level; @@ -472,9 +510,16 @@ nouveau_teximage(struct...
2015 Jan 07
3
[RFC] mesa/st: Avoid passing a NULL buffer to the drivers
...nsertions(+) diff --git a/src/mesa/state_tracker/st_cb_xformfb.c b/src/mesa/state_tracker/st_cb_xformfb.c index 8f75eda..5a12da4 100644 --- a/src/mesa/state_tracker/st_cb_xformfb.c +++ b/src/mesa/state_tracker/st_cb_xformfb.c @@ -123,6 +123,11 @@ st_begin_transform_feedback(struct gl_context *ctx, GLenum mode, struct st_buffer_object *bo = st_buffer_object(sobj->base.Buffers[i]); if (bo) { + if (!bo->buffer) + /* If we capture transform feedback from n streams into (n-1) + * buffers we have to write to buffer (n-1) for stream n. + */...
2007 Mar 28
1
Re: compiz: Changes to 'master' (Added possibility to load textures with fixed RGBA byte ordering from header files)
...bility to load textures with fixed RGBA byte ordering from header files. > I find this change pretty ugly. "Bool fixedRGBA" looks like a quick hack to extend the imageToTexture function with some specific functionality. Creating a lower level function that accept a format and a type GLenum seems like a more appropriate solution to me. However, if you're storing textures in header files. I suggest that you store them as png data, in which case you you don't need this functionality in core at all as png plugin will do byte-swapping when necessary. - David
2015 Feb 14
2
[PATCH 1/2] st/mesa: treat resource-less xfb buffers as if they weren't there
...1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_xformfb.c b/src/mesa/state_tracker/st_cb_xformfb.c index 8f75eda..a2bd86a 100644 --- a/src/mesa/state_tracker/st_cb_xformfb.c +++ b/src/mesa/state_tracker/st_cb_xformfb.c @@ -122,7 +122,7 @@ st_begin_transform_feedback(struct gl_context *ctx, GLenum mode, for (i = 0; i < max_num_targets; i++) { struct st_buffer_object *bo = st_buffer_object(sobj->base.Buffers[i]); - if (bo) { + if (bo && bo->buffer) { /* Check whether we need to recreate the target. */ if (!sobj->targets[i] ||...
2015 Jan 12
2
Re: [RFC] mesa/st: Avoid passing a NULL buffer to the drivers
...state_tracker/st_cb_xformfb.c b/src/mesa/state_tracker/st_cb_xformfb.c >> index 8f75eda..5a12da4 100644 >> --- a/src/mesa/state_tracker/st_cb_xformfb.c >> +++ b/src/mesa/state_tracker/st_cb_xformfb.c >> @@ -123,6 +123,11 @@ st_begin_transform_feedback(struct gl_context *ctx, GLenum mode, >> struct st_buffer_object *bo = st_buffer_object(sobj->base.Buffers[i]); >> >> if (bo) { >> + if (!bo->buffer) >> + /* If we capture transform feedback from n streams into (n-1) >> + * buffers we have to...
2008 Nov 11
2
Memory corruption on Gallium window resize, diagnosed?
...:1675) ==5322== by 0x47C1927: glXMakeCurrent (glxext.c:1797) ==5322== and a couple more invalid reads, and a segfault. My theory is: when the window resize occurs, somewhere along the path st_renderbuffer_alloc_storage(GLcontext * ctx, struct gl_renderbuffer *rb, GLenum internalFormat, GLuint width, GLuint height) { struct pipe_context *pipe = ctx->st->pipe; struct st_renderbuffer *strb = st_renderbuffer(rb); struct pipe_texture template; unsigned surface_usage; /* Free the old surface and texture */ pipe_...
2015 Jan 12
1
Re: [RFC] mesa/st: Avoid passing a NULL buffer to the drivers
...acker/st_cb_xformfb.c >>>> index 8f75eda..5a12da4 100644 >>>> --- a/src/mesa/state_tracker/st_cb_xformfb.c >>>> +++ b/src/mesa/state_tracker/st_cb_xformfb.c >>>> @@ -123,6 +123,11 @@ st_begin_transform_feedback(struct gl_context *ctx, >>>> GLenum mode, >>>> struct st_buffer_object *bo = >>>> st_buffer_object(sobj->base.Buffers[i]); >>>> >>>> if (bo) { >>>> + if (!bo->buffer) >>>> + /* If we capture transform feedback from n str...
2015 Jan 11
0
[RFC] mesa/st: Avoid passing a NULL buffer to the drivers
...-git a/src/mesa/state_tracker/st_cb_xformfb.c b/src/mesa/state_tracker/st_cb_xformfb.c > index 8f75eda..5a12da4 100644 > --- a/src/mesa/state_tracker/st_cb_xformfb.c > +++ b/src/mesa/state_tracker/st_cb_xformfb.c > @@ -123,6 +123,11 @@ st_begin_transform_feedback(struct gl_context *ctx, GLenum mode, > struct st_buffer_object *bo = st_buffer_object(sobj->base.Buffers[i]); > > if (bo) { > + if (!bo->buffer) > + /* If we capture transform feedback from n streams into (n-1) > + * buffers we have to write to buffer (n-1) for...
2012 Jul 06
0
[PATCH] dri/nouveau: Add AllocTextureImageBuffer() implementation
...ouveau/nouveau_texture.c @@ -40,6 +40,7 @@ #include "main/teximage.h" #include "drivers/common/meta.h" #include "swrast/s_texfetch.h" +#include "swrast/swrast.h" static struct gl_texture_object * nouveau_texture_new(struct gl_context *ctx, GLuint name, GLenum target) @@ -71,12 +72,64 @@ nouveau_teximage_new(struct gl_context *ctx) return &nti->base.Base; } +static unsigned +get_teximage_placement(struct gl_texture_image *ti) +{ + if (ti->TexFormat == MESA_FORMAT_A8 || + ti->TexFormat == MESA_FORMAT_L8 || + ti->TexFormat == M...
2015 Jan 12
0
[RFC] mesa/st: Avoid passing a NULL buffer to the drivers
...b/src/mesa/state_tracker/st_cb_xformfb.c >>> index 8f75eda..5a12da4 100644 >>> --- a/src/mesa/state_tracker/st_cb_xformfb.c >>> +++ b/src/mesa/state_tracker/st_cb_xformfb.c >>> @@ -123,6 +123,11 @@ st_begin_transform_feedback(struct gl_context *ctx, >>> GLenum mode, >>> struct st_buffer_object *bo = >>> st_buffer_object(sobj->base.Buffers[i]); >>> >>> if (bo) { >>> + if (!bo->buffer) >>> + /* If we capture transform feedback from n streams into >>> (n-...
2007 Apr 27
0
Wine release 0.9.36
...wined3d: Ignore SetTextureStageState on unsupported texture stages. wined3d: Set the FBO drawbuffer using glDrawBuffer when ARB_DRAW_BUFFERS is not supported. wined3d: Add a function to determine if a surface is the front or the backbuffer for a swapchain, and return the corresponding GLenum. wined3d: Use surface_get_gl_buffer where appropriate. wined3d: Properly handle the difference between GL_BACK and GL_FRONT for onscreen surfaces. wined3d: Don't try to clear the depth stencil if there is none. wined3d: Implement ColorFill using FBOs, if they're bein...
2016 Mar 18
0
Wine release 1.9.6
...wined3d: Recognize SM5 ld_structured opcode. wined3d: Recognize SM5 deriv_rtx_coarse opcode. wined3d: Recognize SM5 deriv_rty_coarse opcode. wined3d: Recognize SM5 deriv_rtx_fine opcode. wined3d: Recognize SM5 deriv_rty_fine opcode. wined3d: Use GLuint instead of GLenum to store ARB blitter shaders. Louis Lenders (1): ntdll: Add stub for RtlAddAccessDeniedObjectAce and forward to AddAccessDeniedObjectAce in advapi32. Matteo Bruni (13): d3dx9: Trace the parameter passed to IsParameterUsed(). d3d11/tests: Require feature level 11_0 or 10_0 by def...
2017 Feb 03
0
Wine release 2.1
...tly handle GL implementations not supporting sRGB FBO attachments. wined3d: If the format is not FBO attachable disable sRGB writes only. d3dx9: Don't forbid supported format conversions. wined3d: Don't query FFP lights count on core profile. wined3d: Use the correct GLenum for point size limit on core profile. wined3d: Trace maximum vertex attributes count. wined3d: Query supported geometry shader uniform buffers count on core profile. Michael Müller (2): msvideo.dll16: Implement DrawDibProfileDisplay. msvideo: Check if any 16 bit thunks have...
2015 May 24
19
[RFC PATCH 00/11] Implement ARB_cull_distance
This patch series adds the needed support for this extension to the various parts of mesa to finally enable it for nvc0. Dave Airlie (1): glsl: lower cull_distance into cull_distance_mesa Tobias Klausmann (10): glapi: add GL_ARB_cull_distance mesa/main: add support for GL_ARB_cull_distance mesa/prog: Add varyings for arb_cull_distance mesa/st: add support for GL_ARB_cull_distance