search for: gl_float

Displaying 7 results from an estimated 7 matches for "gl_float".

2014 Aug 10
2
Coordinate systems on on nv10-era cards
Hello, I'm trying to debug why fbo-copyteximage-simple is failing, and I'm... failing. It's an extremely simple test. I'm pretty sure that the copyteximage part of it has nothing to do with the failure, at least it behaves identically when I just return tex instead of copiex_tex. Without any modifications, the test just renders one big red square. I think there's something
2014 Aug 15
0
Coordinate systems on on nv10-era cards
...olor3f(0, 0, 1); glVertex3f(128, 0.75*128 + 128, 0); glEnd(); Then all is well. However if I do: float verts[3][6] = { { -0.6*128 + 128, -0.75*128 + 128, 0.5, 1, 0, 0 }, { 0.6*128 + 128, -0.75*128 + 128, 0, 0, 1, 0 }, { 128, 0.75*128 + 128, 0, 0, 0, 1 }, }; glVertexPointer(3, GL_FLOAT, 24, verts); glColorPointer(3, GL_FLOAT, 24, &verts[0][3]); glEnableClientState(GL_VERTEX_ARRAY); glEnableClientState(GL_COLOR_ARRAY); glDrawArrays(GL_TRIANGLES, 0, 3); glDisableClientState(GL_VERTEX_ARRAY); glDisableClientState(GL_COLOR_ARRAY); Then I see the failure. Looking at...
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
2006 Oct 12
0
Privates example? (fwd)
...es + (stride - 2); stride *= sizeof (GLfloat); @@ -3559,11 +3568,11 @@ glEnableClientState (GL_TEXTURE_COORD_ARRAY); currentTexUnit = texUnit; } - vertices -= w->texCoordSize; - glTexCoordPointer (w->texCoordSize, GL_FLOAT, stride, vertices); + vertices -= aw->texCoordSize; + glTexCoordPointer (aw->texCoordSize, GL_FLOAT, stride, vertices); } - glDrawElements (GL_QUADS, w->indexCount, GL_UNSIGNED_SHORT, + glDrawElements (GL_QUADS, aw->indexCount, GL_UNSIGNED_...
2016 Apr 19
0
more one question regarding gl and nouveau
...> floats > 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
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