search for: gl_false

Displaying 14 results from an estimated 14 matches for "gl_false".

2013 Feb 28
7
[Bug 61635] New: glVertexAttribPointer(id, GL_UNSIGNED_BYTE, GL_FALSE, ...) does not work
https://bugs.freedesktop.org/show_bug.cgi?id=61635 Priority: medium Bug ID: 61635 Assignee: nouveau at lists.freedesktop.org Summary: glVertexAttribPointer(id, GL_UNSIGNED_BYTE, GL_FALSE,...) does not work Severity: normal Classification: Unclassified OS: All Reporter: rodrigorivascosta at gmail.com Hardware: x86 (IA32) Status: NEW Version: git Component: Drivers/DRI/nouveau Product: Mesa...
2012 Apr 06
1
[WIP PATCH] dri/nouveau: Add S3TC support for nv20.
...E_BIT, @@ -516,8 +561,8 @@ nouveau_teximage_1d(struct gl_context *ctx, const struct gl_pixelstore_attrib *packing) { nouveau_teximage(ctx, 1, ti, internalFormat, - width, 1, 1, border, format, type, pixels, - packing); + width, 1, 1, border, 0, format, type, pixels, + packing, GL_FALSE); } static void @@ -529,8 +574,8 @@ nouveau_teximage_2d(struct gl_context *ctx, const struct gl_pixelstore_attrib *packing) { nouveau_teximage(ctx, 2, ti, internalFormat, - width, height, 1, border, format, type, pixels, - packing); + width, height, 1, border, 0, format, type...
2012 Apr 30
5
[PATCH] nouveau/vieux: only advertise supported texture formats
...ex 4845767..46c0d70 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_context.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_context.c @@ -117,6 +117,15 @@ nouveau_context_init(struct gl_context *ctx, struct nouveau_screen *screen, nouveau_span_functions_init(ctx); _mesa_allow_light_in_model(ctx, GL_FALSE); + /* only advertise supported texture formats */ + memset(&ctx->TextureFormatSupported, 0, + sizeof(ctx->TextureFormatSupported)); + ctx->TextureFormatSupported[MESA_FORMAT_XRGB8888] = true; + ctx->TextureFormatSupported[MESA_FORMAT_ARGB8888] = true; + ctx->TextureForm...
2013 Oct 04
1
[PATCH] nouveau_vieux: add AllocTextureImageBuffer implementation
...94,6 +494,14 @@ nouveau_compressed_teximage(struct gl_context *ctx, GLuint dims, &ctx->Unpack, GL_TRUE); } +static GLboolean +nouveau_teximage_alloc(struct gl_context *ctx, struct gl_texture_image *ti) +{ + nouveau_teximage(ctx, 3, ti, 0, 0, 0, NULL, + &ctx->DefaultPacking, GL_FALSE); + return GL_TRUE; +} + static void nouveau_texsubimage(struct gl_context *ctx, GLint dims, struct gl_texture_image *ti, @@ -634,6 +642,7 @@ nouveau_texture_functions_init(struct dd_function_table *functions) functions->DeleteTexture = nouveau_texture_free; functions->NewTexture...
2014 Sep 13
2
[PATCH] nouveau: fix glCompressedTexImage
...rt(ret); + } nouveau_unmap_texture_image(ctx, ti, 0); _mesa_unmap_teximage_pbo(ctx, packing); @@ -502,7 +533,8 @@ static GLboolean nouveau_teximage_alloc(struct gl_context *ctx, struct gl_texture_image *ti) { nouveau_teximage(ctx, 3, ti, 0, 0, 0, NULL, - &ctx->DefaultPacking, GL_FALSE); + &ctx->DefaultPacking, + _mesa_is_format_compressed(ti->TexFormat)); return GL_TRUE; } @@ -535,11 +567,18 @@ nouveau_texsubimage(struct gl_context *ctx, GLint dims, xoffset, yoffset, width, height, GL_MAP_WRITE_BIT, &map, &row_stride); - ret = _mes...
2016 Apr 19
2
more one question regarding gl and nouveau
Hi, for example, if I have glVertex3f(0.75, 0.75, 1.0) how the video card processes these three floats? Does the card work with floats? Does (mesa? gallium? driver?) process these three input floats before it is sent to the card? Where is the code for it? If you say the floats are memory mapped as in exec->vtx.buffer_map = (GLfloat *)ctx->Driver.MapBufferRange(...) I would say from what I
2014 Sep 14
1
[PATCH] nouveau: fix glCompressedTexImage
...a_unmap_teximage_pbo(ctx, packing); >> @@ -502,7 +533,8 @@ static GLboolean >> nouveau_teximage_alloc(struct gl_context *ctx, struct gl_texture_image *ti) >> { >> nouveau_teximage(ctx, 3, ti, 0, 0, 0, NULL, >> - &ctx->DefaultPacking, GL_FALSE); >> + &ctx->DefaultPacking, >> + _mesa_is_format_compressed(ti->TexFormat)); >> return GL_TRUE; >> } >> >> @@ -535,11 +567,18 @@ nouveau_texsubimage(struct gl_context *ctx, GLint dims, >>...
2016 Apr 19
0
more one question regarding gl and nouveau
...ts > and send them to the card? > > Thanks in advance. The vbo module converts this to the equivalent of glGenBuffers(1, &buf) glBindBuffer(GL_ARRAY_BUFFER, buf) glBufferData(GL_ARRAY_BUFFER, ...) foo = glMapBuffer(buf) write vertex values to foo glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, 0); draw Hope that helps, -ilia
2006 Dec 04
1
(no subject)
Hi, I've been trying to get the new i915tex DRI module to work with the new DRM memory manager and finally succeeded. Unfortunately it seems to break compiz which errors out complaining that there are no GLXFBConfigs for the default depth. I was able to trace the problem to the following block of code in src/screen.c, starting on line 1897: if (s->fbo) { (*s->getFBConfigAttrib)
2008 Jan 29
1
[PATCH] free nvs->pass_rec on error in nouveau_shader_pass2(), nouveau_shader_2.c
...ader_2.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_shader_2.c @@ -229,6 +229,8 @@ nouveau_shader_pass2(nvsPtr nvs) ((nvsSubroutine*)nvs->program_tree)->insn_head)) { free(nvs->program); nvs->program = NULL; + free(nvs->pass_rec); + nvs->pass_rec = NULL; return GL_FALSE; }
2014 Sep 14
0
[PATCH] nouveau: fix glCompressedTexImage
...ap_texture_image(ctx, ti, 0); > _mesa_unmap_teximage_pbo(ctx, packing); > @@ -502,7 +533,8 @@ static GLboolean > nouveau_teximage_alloc(struct gl_context *ctx, struct gl_texture_image *ti) > { > nouveau_teximage(ctx, 3, ti, 0, 0, 0, NULL, > - &ctx->DefaultPacking, GL_FALSE); > + &ctx->DefaultPacking, > + _mesa_is_format_compressed(ti->TexFormat)); > return GL_TRUE; > } > > @@ -535,11 +567,18 @@ nouveau_texsubimage(struct gl_context *ctx, GLint dims, > xoffset, yoffset, width, height, > GL_MAP_WRITE_BIT, &am...
2016 Apr 19
2
more one question regarding gl and nouveau
...; Thanks in advance. > > The vbo module converts this to the equivalent of > > glGenBuffers(1, &buf) > glBindBuffer(GL_ARRAY_BUFFER, buf) > glBufferData(GL_ARRAY_BUFFER, ...) > foo = glMapBuffer(buf) > write vertex values to foo > glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, 0); > draw > > Hope that helps, > > -ilia > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20160419/0aa6b9fd/attachment.html>
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
2009 Mar 02
0
[PATCH 4 of 13] DisplayState interface change
...c uint8_t bgr; -static void opengl_setdata(DisplayState *ds, void *pixels) +static void opengl_setdata(DisplayState *ds) { glEnable(GL_TEXTURE_RECTANGLE_ARB); glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); @@ -72,14 +71,13 @@ glDisable(GL_DEPTH_TEST); glDepthMask(GL_FALSE); glDisable(GL_CULL_FACE); - glViewport( 0, 0, screen->w, screen->h); + glViewport( 0, 0, real_screen->w, real_screen->h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); - glOrtho(0, screen->w, screen->h, 0, -1,1); + glOrtho(0, real_screen->w, real_sc...