Commit Graph

18916 Commits

Author SHA1 Message Date
Brian Paul
47053782b8 mesa: move declarations before code 2009-03-12 16:13:44 -06:00
Brian Paul
363fc6d64f mesa: fix glRead/DrawBuffer(GL_AUXn) error value
If GL_AUX[123] are passed to glRead/DrawBuffer() when those buffers don't
exist, need to generate GL_INVALID_OPERATION, not GL_INVALID_ENUM.

This regression came from commit 555f0a8818
2009-03-12 14:17:27 -06:00
Robert Ellison
29309b45b0 i965: fix polygon stipple when rendering to FBO
The polygon stipple pattern, like the viewport and the
polygon face orientation, must be inverted on the i965
when rendering to a FBO (which itself has an inverted pixel
coordinate system compared to raw Mesa).

In addition, the polygon stipple offset, which orients
the stipple to the window system, disappears when rendering
to an FBO (because the window system offset doesn't apply,
and there's no associated FBO offset).

With these fixes, the conform triangle and polygon stipple
tests pass when rendering to texture.
2009-03-12 11:58:43 -06:00
Michal Krol
a9a214cc7f tgsi: Localise SCS code. 2009-03-12 18:32:38 +01:00
Michal Krol
321634d80b tgsi: Rewrite NRM opcode, store 1.0 in W component. 2009-03-12 18:32:36 +01:00
Michal Krol
d4ea9a2652 tgsi: Begin documenting NV_fragment_program2 instruction set operations. 2009-03-12 18:32:34 +01:00
Michal Krol
98399eeda0 tgsi: Begin documenting ARB_fragment_program instruction set operations. 2009-03-12 18:32:32 +01:00
Michal Krol
d76b3bb0a8 tgsi: Document ARB_vertex_program instruction set operations. 2009-03-12 18:32:29 +01:00
Michal Krol
8823d01f14 tgsi: Begin documenting NV_vertex_program2 instruction set operations. 2009-03-12 18:32:27 +01:00
Keith Whitwell
10812b0791 stw: fix uninitialized variable issue 2009-03-12 16:57:30 +00:00
Keith Whitwell
d885c9dad1 util: fix debug_assert() to avoid unused variable warnings in release builds 2009-03-12 16:57:30 +00:00
Jakob Bornecrantz
e8ee34e7f3 trace: Wrap pipe_buffers 2009-03-12 16:35:43 +01:00
Jakob Bornecrantz
53e5248b0a trace: Add dump util functions for wrapped pointers 2009-03-12 16:35:43 +01:00
Brian Paul
862dccd560 mesa: fix transposed red/blue in store_texel_rgb888/bgr888() functions 2009-03-12 09:30:08 -06:00
Roland Scheidegger
3327cc64e7 i965: add support for ATI_envmap_bumpmap 2009-03-12 15:06:17 +01:00
Roland Scheidegger
36010806a1 regenerate glapi 2009-03-12 15:04:47 +01:00
Roland Scheidegger
114152e068 mesa: add support for ATI_envmap_bumpmap
add new entrypoints, new texture format, etc
translate in texenvprogram.c for drivers using the mesa-generated tex env
fragment program
also handled in swrast, but not tested (cannot work due to negative texel
results not handled correctly)
2009-03-12 15:01:16 +01:00
Jakob Bornecrantz
808f322799 trace: Move buffer functions from winsys to screen 2009-03-11 22:47:15 +01:00
Jakob Bornecrantz
4225120503 trace: Remove all whitespace at EOL 2009-03-11 22:47:15 +01:00
Jakob Bornecrantz
5d418f7155 trace: Fixup trace a bit 2009-03-11 22:47:14 +01:00
Keith Whitwell
81569c2f69 mesa: add missing _glthread_INIT_MUTEX in _mesa_new_framebuffer() 2009-03-12 10:09:51 +00:00
Robert Ellison
6dceeb2eb8 i965: fix polygon face orientation when rendering to FBO
In the i965, the FBO coordinate system is inverted from the standard
OpenGL/Mesa coordinate system; that means that the viewport and the
polygon face orientation have to be inverted if rendering to a FBO.

The viewport was already being handled correctly; but polygon face
was not.  This caused a conform failure when rendering to texture with
two-sided lighting enabled.

This fixes the problem in the i965 driver, and adds to the comment about
the gl_framebuffer "Name" field so that this isn't a surprise to other
driver writers.
2009-03-11 21:19:45 -06:00
Brian Paul
548be3846d mesa: remove some last remnants of GL_MESA_program_debug 2009-03-11 20:08:37 -06:00
Brian Paul
4dfa3757c5 mesa: minor comments 2009-03-11 19:34:41 -06:00
Brian Paul
590f6fe050 mesa: remove gl_texture_object::_Function field and associated code
It was only used in one place in swrast.
2009-03-11 19:23:01 -06:00
Brian Paul
7d9cb242fd intel: include main/viewport.h 2009-03-11 19:04:22 -06:00
Corbin Simpson
d375a3bdda r300-gallium: Don't flush textures more than necessary. 2009-03-11 15:23:10 -07:00
Corbin Simpson
f78bd5922d r300-gallium: Fix texture filters. 2009-03-11 15:23:10 -07:00
Corbin Simpson
cec2170632 r300-gallium: r500-fs: More texture fixes. 2009-03-11 15:23:09 -07:00
Corbin Simpson
c4c1774bbb r300-gallium: r500-fs: Add shader dumper and more tex work. 2009-03-11 15:23:09 -07:00
Corbin Simpson
ddf31d0e31 r300-gallium: Fix CS count for texture emit. 2009-03-11 15:23:09 -07:00
Corbin Simpson
6b1596aed3 r300-gallium: r500-fs: Add SWZ. 2009-03-11 15:23:09 -07:00
Corbin Simpson
ddba20b064 r300-gallium: Fix CS count in fb state emit. 2009-03-11 15:23:08 -07:00
Corbin Simpson
d13e4bd1cb r300-gallium: Start swizzles. 2009-03-11 15:23:08 -07:00
Corbin Simpson
8b21250305 r300-gallium: Begin R500 fragment shader assembler.
I love it so much. I also hate it a lot.
2009-03-11 15:23:08 -07:00
Brian Paul
04465bb6df i965: fix lock-ups when GLSL program wrote to gl_FragDepth
It seems the code that set up the FB_WRITE message was incomplete in this
case.  The number of payload registers was wrong and that caused a hang.

It would be good to have a second set of eyes take a look at this...
2009-03-11 13:13:17 -06:00
Jakob Bornecrantz
b6b198ea1b trace: Fixup trace a bit 2009-03-11 14:43:28 +01:00
Michal Krol
5146b3f8fc tgsi: Implement RFL, SFL, STR, X2D opcodes. 2009-03-11 13:49:43 +01:00
Michal Krol
9ffe66760c tgsi: Begin documenting NV_fragment_program instruction set operations. 2009-03-11 12:52:20 +01:00
Michal Krol
ae7ae570ef tgsi: Implement RCC opcode. 2009-03-11 12:11:50 +01:00
Michal Krol
94cf8ea3b6 tgsi: Document NV_vertex_program1_1 instruction set operations. 2009-03-11 12:11:48 +01:00
Brian Paul
ddf7d8fe01 i965: more code clean-ups, comments 2009-03-10 18:27:48 -06:00
Brian Paul
76ff6d40f4 i965: minor code clean-ups, comments 2009-03-10 18:27:48 -06:00
Brian Paul
9c781de015 i965: use new cast wrappers 2009-03-10 18:27:48 -06:00
Brian Paul
294a473f7a i965: added cast wrappers, comments 2009-03-10 18:27:48 -06:00
Brian Paul
13177f03fc i965: asst. code clean-ups, comments 2009-03-10 18:27:48 -06:00
Brian Paul
6bed5caf88 i965: fix typos in comments 2009-03-10 18:27:48 -06:00
Brian Paul
d861d589a8 glsl: remove _slang_attach_storage() function
This was used to handle both variable declarations and references to variables.
Instead, just do storage allocation and assignment for declarations and
references, respectively.

This is a step toward better var/uniform allocation (only allocate storage
for vars/uniforms that are actually referenced by the code).
2009-03-10 18:25:38 -06:00
Brian Paul
b78463cbad glsl: some clean-ups, remove old assertions, add new assertions 2009-03-10 18:25:38 -06:00
Brian Paul
0522624c83 glsl: remove stray/unneeded totalSize assignment 2009-03-10 18:25:38 -06:00