Francisco Jerez
920481d387
dri/nv20: Clear with the 3D engine.
2010-10-30 19:25:31 +02:00
Chia-I Wu
cfc81d93f7
st/mesa: Unreference the sampler view in st_bind_surface.
...
Without this, update_textures may not pick up the new pipe_resource.
It is actually update_textures that should check
stObj->sampler_view->texture != stObj->pt, but let's follow st_TexImage
and others for now.
2010-10-31 01:18:59 +08:00
Brian Paul
9c2b4814d0
osmesa: fix renderbuffer memleak in OSMesaMakeCurrent()
...
Fixes fd.o bug 31128.
2010-10-30 10:11:37 -06:00
Chia-I Wu
156e955c25
autoconf: st/vega requires --enable-openvg.
...
Make it a warning for now to smooth the transition.
2010-10-30 14:41:17 +08:00
Kenneth Graunke
cff1aeea10
glsl: Remove unused ARRAY_SIZE macro.
...
It's also equivalent to Elements(...) which is already used elsewhere.
2010-10-29 11:43:30 -07:00
Eric Anholt
a974949f3b
mesa: Make metaops use program refcounts instead of names.
...
Fixes failure on restoring state when the program was active but
deleted, and the name no longer exists.
Bug #31194
2010-10-29 11:28:38 -07:00
Brian Paul
34e8801b9c
mesa: remove dead code
2010-10-29 08:13:31 -06:00
José Fonseca
d070edd4f0
mesa: Fix windows build (uint -> GLuint).
2010-10-29 13:05:31 +01:00
Chia-I Wu
bdd8838631
targets: Add missing quotes to Makefile.xorg.
...
Fix
$ make CC="ccache gcc"
2010-10-29 13:00:12 +08:00
Chia-I Wu
9de5c6a1cb
Merge branch 'glapi-reorg'
...
Conflicts:
src/mapi/glapi/glapi_sparc.S
src/mapi/glapi/glapi_x86.S
src/mapi/glapi/glapidispatch.h
src/mapi/glapi/glapioffsets.h
src/mapi/glapi/glprocs.h
2010-10-29 12:46:59 +08:00
Chia-I Wu
815faa448c
autoconf: Update configuration info.
...
Output API info first. Move GLU/GLw/GLUT and EGL near driver info.
2010-10-29 12:42:24 +08:00
Chia-I Wu
c6320c5eb2
docs: Update egl and openvg docs.
2010-10-29 12:11:49 +08:00
Chia-I Wu
be5f34a053
autoconf: Better client API selection.
...
Make autoconf decide the client APIs enabled first. Then when OpenGL
and OpenGL ES are disabled, there is no need to build src/mesa/; when
OpenGL is disabled, no $mesa_driver should be built. Finally, add
--enable-openvg to enable OpenVG.
With these changes, an OpenVG only build can be configured with
$ ./configure --disable-opengl --enable-openvg
src/mesa, src/glsl, and src/glx will be skipped, which saves a great
deal of compilation time.
And an OpenGL ES only build can be configured with
$ ./configure --disable-opengl --enable-gles-overlay
2010-10-29 12:10:46 +08:00
Brian Paul
bdba4608df
mesa: pixel transfer ops do not apply to integer-valued textures
2010-10-28 21:17:42 -06:00
Brian Paul
0a3566cec0
mesa: additional integer formats in _mesa_bytes_per_pixel()
2010-10-28 21:17:42 -06:00
Brian Paul
7faf521fad
mesa: add const qualifier to _mesa_is_legal_format_and_type()
2010-10-28 21:17:42 -06:00
Brian Paul
113c1832b1
mesa: fix integer cases in _mesa_is_legal_format_and_type()
...
Some integer formats work with some packed datatypes.
2010-10-28 21:17:42 -06:00
Brian Paul
9fc7fa0a4c
mesa: fix incorrect type in _mesa_texstore_rgba_int16()
2010-10-28 21:17:42 -06:00
Brian Paul
b44f9c7e0a
mesa: remove obsolete comment
2010-10-28 21:17:42 -06:00
Brian Paul
22c7a69d7b
mesa: add extension table entry for GL_EXT_gpu_shader4
2010-10-28 21:17:42 -06:00
Brian Paul
55dc971ded
mesa: clean-up array element code
...
Remove unnecessary GLAPIENTRY keywords, update comments, re-indent.
2010-10-28 21:17:42 -06:00
Brian Paul
d916d81582
mesa: glArrayElement support for integer-valued arrays
2010-10-28 21:17:42 -06:00
Brian Paul
3b82ceec67
mesa: state/queries for GL_MIN/MAX_PROGRAM_TEXEL_OFFSET_EXT
2010-10-28 21:17:42 -06:00
Brian Paul
433e5e6def
mesa: consolidate glVertex/Color/etcPointer() code
...
This removes a bunch of similar error checking code in all the vertex
pointer functions and puts nearly all the error checking in update_array().
2010-10-28 21:17:42 -06:00
Brian Paul
d1184d26bb
mesa: add gl_client_array::Integer field and related vertex array state code
2010-10-28 21:17:41 -06:00
Brian Paul
ca2618f4b6
mesa: implement integer-valued vertex attribute functions
...
The integers still get converted to floats. That'll have to change someday.
2010-10-28 21:17:41 -06:00
Brian Paul
e2b8c65723
mesa: add new GLvertexformat entries for integer-valued attributes
2010-10-28 21:17:41 -06:00
Brian Paul
ba9995953c
mesa: plug in more GL_EXT_gpu_shader4 functions
2010-10-28 21:17:41 -06:00
Brian Paul
9c61ca90ea
mesa: add glGetUniformuiv(), plug in uint glUniform funcs
2010-10-28 21:17:41 -06:00
Brian Paul
53eca8d216
mesa: plug in stubs for glBindFragDataLocation(), glGetFragDataLocation()
2010-10-28 21:17:41 -06:00
Brian Paul
a6fb2acfdb
glapi: regenerated API files
2010-10-28 21:17:41 -06:00
Brian Paul
20371d40b8
glapi: include EXT_gpu_shader4.xml
2010-10-28 21:17:41 -06:00
Brian Paul
a52dbaa99a
glapi: xml spec file for GL_EXT_gpu_shader4
2010-10-28 21:17:41 -06:00
Brian Paul
beea704be2
vbo: re-indent file
2010-10-28 21:17:41 -06:00
Brian Paul
25efd558a3
mesa: remove 'normalized' parameter from _mesa_VertexAttribIPointer()
2010-10-28 21:17:41 -06:00
Eric Anholt
9d45c7d1ce
i965: Update the gen6 stencil ref state when stencil state changes.
...
Fixes 6 piglit tests about stencil operations.
2010-10-28 16:28:42 -07:00
Eric Anholt
b271445e37
i965: Upload required gen6 VS push constants even when using pull constants.
...
Matches pre-gen6, and fixes glsl-vs-large-uniform-array.
2010-10-28 15:38:38 -07:00
Eric Anholt
c5114c7eab
i965: Update gen6 SF state when point state (sprite or attenuation) changes.
2010-10-28 15:38:38 -07:00
Eric Anholt
e30a3e7aa0
i965: Add user clip planes support to gen6.
...
Fixes piglit user-clip, and compiz desktop switching when dragging a
window and using just 2 desktops. Bug #30446 .
2010-10-28 14:45:11 -07:00
José Fonseca
85a08f8fc7
gallivm: Remove the EMMS opcodes.
...
Unnecessary now that lp_set_target_options() successful disables MMX code
emission.
2010-10-28 20:42:02 +01:00
José Fonseca
8d364221e9
gallivm: always enable LLVMAddInstructionCombiningPass()
2010-10-28 20:40:34 +01:00
José Fonseca
5479fa34d9
gallium: Avoid using __doc__ in python scripts.
2010-10-28 17:38:18 +01:00
Vinson Lee
a54ab4960b
st/mesa: Silence uninitialized variable warning.
...
Fixes this GCC warning.
state_tracker/st_program.c: In function 'st_print_shaders':
state_tracker/st_program.c:735: warning: 'sh' may be used uninitialized in this function
2010-10-28 06:08:19 -07:00
Tom Stellard
aa43176ebd
r300/compiler: Use rc_get_readers_normal() for presubtract optimizations
2010-10-27 22:49:50 -07:00
Kenneth Graunke
cbc966b57b
i965: Add bit operation support to the fragment shader backend.
2010-10-27 13:55:30 -07:00
Eric Anholt
9e3641bd0d
i965: Make FS uniforms be the actual type of the uniform at upload time.
...
This fixes some insanity that would otherwise be required for GLSL
1.30 bit ops or gen6 integer uniform operations in general, at the
cost of upload-time pain. Given that we only have that pain because
mesa's mangling our integer uniforms to be floats, this something that
should be fixed outside of the shader codegen.
2010-10-27 13:54:35 -07:00
Ian Romanick
502943049a
docs: add GL_EXT_separate_shader_objects to release notes
2010-10-27 13:45:29 -07:00
Ian Romanick
817ed68710
intel: Enable GL_EXT_separate_shader_objects in Intel drivers
2010-10-27 13:35:53 -07:00
Ian Romanick
f48915ec52
swrast: Enable GL_EXT_separate_shader_objects in software paths
2010-10-27 13:35:53 -07:00
Ian Romanick
84eba3ef71
Track separate programs for each stage
...
The assumption is that all stages are the same program or that
varyings are passed between stages using built-in varyings.
2010-10-27 13:35:53 -07:00