Displaying 6 results from an estimated 6 matches for "glsizei".
2014 Sep 13
2
[PATCH] nouveau: fix glCompressedTexImage
...0644
--- a/src/mesa/drivers/dri/nouveau/nouveau_texture.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_texture.c
@@ -413,6 +413,31 @@ get_teximage_placement(struct gl_texture_image *ti)
}
static void
+nouveau_compressed_copy(struct gl_context *ctx, GLint dims,
+ struct gl_texture_image *ti,
+ GLsizei width, GLsizei height, GLsizei depth,
+ const GLvoid *src, GLvoid *dst, int row_stride)
+{
+ struct compressed_pixelstore store;
+ int i;
+
+ _mesa_compute_compressed_pixelstore(dims, ti->TexFormat,
+ width, height, depth,
+ &ctx->Unpack, &store);
+
+ src += store.Sk...
2014 Sep 14
1
[PATCH] nouveau: fix glCompressedTexImage
...eau_texture.c
>> @@ -413,6 +413,31 @@ get_teximage_placement(struct gl_texture_image *ti)
>> }
>>
>> static void
>> +nouveau_compressed_copy(struct gl_context *ctx, GLint dims,
>> + struct gl_texture_image *ti,
>> + GLsizei width, GLsizei height, GLsizei depth,
>> + const GLvoid *src, GLvoid *dst, int row_stride)
>> +{
>> + struct compressed_pixelstore store;
>> + int i;
>> +
>> + _mesa_compute_compressed_pixelstore(dims, ti->TexFormat,
>> +...
2014 Sep 14
0
[PATCH] nouveau: fix glCompressedTexImage
...nouveau_texture.c
> +++ b/src/mesa/drivers/dri/nouveau/nouveau_texture.c
> @@ -413,6 +413,31 @@ get_teximage_placement(struct gl_texture_image *ti)
> }
>
> static void
> +nouveau_compressed_copy(struct gl_context *ctx, GLint dims,
> + struct gl_texture_image *ti,
> + GLsizei width, GLsizei height, GLsizei depth,
> + const GLvoid *src, GLvoid *dst, int row_stride)
> +{
> + struct compressed_pixelstore store;
> + int i;
> +
> + _mesa_compute_compressed_pixelstore(dims, ti->TexFormat,
> + width, height, depth,
> + &ctx->...
2012 Jul 06
0
[PATCH] dri/nouveau: Add AllocTextureImageBuffer() implementation
...ll have to be swizzled by the CPU,
+ * so leave them in system RAM for now. */
+ return NOUVEAU_BO_MAP;
+ else
+ return NOUVEAU_BO_GART | NOUVEAU_BO_MAP;
+}
+
+static GLboolean
+nouveau_alloc_texture_image_buffer(struct gl_context *ctx,
+ struct gl_texture_image *ti,
+ gl_format format, GLsizei width,
+ GLsizei height, GLsizei depth)
+{
+ struct nouveau_teximage *nti = to_nouveau_teximage(ti);
+ struct nouveau_surface *s = &nti->surface;
+
+ if (s->bo && s->format == ti->TexFormat &&
+ s->width == ti->Width && s->height == ti->Heigh...
2012 Apr 06
1
[WIP PATCH] dri/nouveau: Add S3TC support for nv20.
....cpp = s->cpp,
- .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 @@ n...
2005 Jul 19
0
Problems in rgl on MacOS X
...':
scene.cpp:1994: error: invalid conversion from '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:
..........
u...