Commit Graph

25403 Commits

Author SHA1 Message Date
Zack Rusin
8bdce0c3a7 st/xorg: set vertex and fragment shader for the current op 2009-08-27 18:17:54 -04:00
Zack Rusin
c7e103d238 st/xorg: bind rasterizer state 2009-08-27 18:08:58 -04:00
Zack Rusin
2048182e86 st/xorg: set blend state for exa 2009-08-27 18:06:15 -04:00
Zack Rusin
f9a3fce090 st/xorg: bind framebuffer and viewport for exa 2009-08-27 17:39:45 -04:00
Zack Rusin
3f15ea866f st/xorg: create and destroy shader cache 2009-08-27 17:39:45 -04:00
Michel Dänzer
416ee3c53e st/xorg: Set shared usage of pixmaps for use via DRI2.
Also allow pixmaps to have both the shared and displayed usage flags, as is
the case for the screen pixmap now.
2009-08-27 20:29:32 +02:00
Michel Dänzer
bfbfcdd703 st/dri: Make sure the front left renderbuffer is there for texture-from-pixmap. 2009-08-27 20:27:28 +02:00
Michel Dänzer
d73d4cfcf1 st/xorg: Don't hardcode ExaPrepareCopy to fall back to software. 2009-08-27 20:27:28 +02:00
Michel Dänzer
05aa56a827 st/xorg: Flush context if necessary in ExaPrepareAccess. 2009-08-27 20:27:28 +02:00
Michel Dänzer
f3a540f6d7 st/dri: Only ask for fake front buffer for single buffer visuals by default. 2009-08-27 20:17:53 +02:00
Michel Dänzer
a33e9ea3b9 st/xorg/dri: Pass texture formats via the DRI2 protocol flags.
No need to guess.
2009-08-27 20:17:53 +02:00
Nicolai Hähnle
1160bf7c65 r300: Cleanup reported native program limits
The fragment program native limits are actually higher on R4xx
as reported by Alex Deucher, but using those requires some
bit-twiddling changes to program handling.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-08-27 18:13:48 +02:00
Nicolai Hähnle
eb6e281966 r300: Debug messages are written to stderr, so fflush that
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-08-27 18:13:48 +02:00
Pauli Nieminen
570d4e375a radeon/r200/r300: Fix swtcl prediction to work after primitie change.
Swtcl calls flush everytime primitive changes so prediction has to made again
after flushing.
2009-08-27 18:57:13 +03:00
Brian Paul
44e86dde6d Merge branch 'mesa_7_5_branch' 2009-08-27 09:14:09 -06:00
Brian Paul
32f95f8c17 gallium/util: added support for SRGB formats
Fixes glean/texture_srgb failure, bug #23449.
2009-08-27 09:10:38 -06:00
Brian Paul
f8ae968d28 gallium/util: added cases for SRGB formats 2009-08-27 09:09:56 -06:00
Chia-I Wu
8d0bdfa433 progs: EGL/X progs should link to libX11.
Since 5a459d58fc, libEGL no longer links
to libX11.  Add the dependency to affected progs and cleanup
prog/egl/Makefile.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-27 08:08:30 -06:00
Vinson Lee
0dd08a9e15 mesa: move decls before code 2009-08-27 07:40:48 -06:00
Cooper Yuan
ba87cbf2be r300g: Correct scissor setting, subtract 1 from window's width and height 2009-08-27 17:46:59 +08:00
Dave Airlie
82ff3190de radeon: fix scissor calcs.
For non-FBOs we need to invert, for FBOs the scissors are non-inverted.

no matter what we need to clamp them to the buffer sizes.
2009-08-27 15:38:00 +10:00
Ian Romanick
09c73c7437 i965: Increase assmebly shader program parameter limits
Increase the number of native program parameters to the same values
exposed by GLSL.
2009-08-26 22:05:53 -07:00
Ian Romanick
eabe12df44 ARB prog: Change handling of program parameter limits
Several changes are made to program parameter limits.  Several of the
non-NATIVE limits are set higher.  All of the NATIVE limits are set to
zero in the core Mesa code.  Each driver must set the actual value in
its context creation routine.  If the NATIVE value remains zero, this
indicates that hardware shaders may not be supported.

Each of the preceeding changes matches the bahavior of Apple's shader
assembler, so it seems safe.

Finally, we limit the value of MaxEnvParams to be no greater than
MaxNativeAttribs.  At least one case has been found where an
application does the wrong thing if MaxNativeAttribs < MaxEnvParams.

See also bugzilla #23490.
2009-08-26 22:05:53 -07:00
Dave Airlie
20d9204fbd radeon: fix max indx/vertex emission due to state checker 2009-08-27 14:50:42 +10:00
Younes Manton
cefe9c4f39 mesa: gitignore 2009-08-26 20:15:00 -04:00
Younes Manton
7d3b8231e1 nv04: Handle more Z formats.
Based on the patch from Luo Jinghua.
2009-08-26 20:07:51 -04:00
Nicolai Hähnle
c024f1047f r300/compiler: Fix vertex program MAD emit
Only use the macro variant of MAD when absolutely necessary.
Apparently it cannot deal with relative addressing.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-08-27 01:46:50 +02:00
Nicolai Hähnle
2114acb044 r300/compiler: Fix bug in rc_find_free_temporary
Find used temporaries even if they are only written to in dead code.
This fixes a bug in the NQSSADCE stage.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-08-27 01:46:45 +02:00
Chia-I Wu
e1d978775f egl: Remove Xdpy from EGLDisplay.
It is not used anymore.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-26 16:40:22 -06:00
Chia-I Wu
f5a06fad62 egl_glx: Make fbconfigs and visuals per display.
This is to allow a driver to drive multiple displays.  Remove the use of
_EGL_PLATFORM_X and obsolete code along the way.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-26 16:40:22 -06:00
Chia-I Wu
c06699dd12 egl_softpipe: Make winsys and pipe screen per display.
This is to allow a driver to drive multiple displays.  Remove the use of
_EGL_PLATFORM_X along the way.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-26 16:40:22 -06:00
Chia-I Wu
49f245ea6b EGL_i915: Make struct drm_device per display.
This is to allow a driver to drive multiple displays.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-26 16:40:22 -06:00
Pauli Nieminen
74b55970dc Merge branch 'fix_r300_swtcl' into push_master 2009-08-27 00:08:30 +03:00
Pauli Nieminen
47d4b9ff70 radeon: Fix loop en condition so debug output doesn't flood meaningless values. 2009-08-27 00:07:05 +03:00
Pauli Nieminen
e0e76edf97 radeon: Make RADEON_CMDBUF more fine grained. 2009-08-27 00:05:57 +03:00
Pauli Nieminen
97029c1860 radeon/r200/r300: Fix swtcl flushing not to invalidate dma region.
We were check command buffer sizes too alte so allocated dma regions
were freed before relocations so space checking failed.
2009-08-27 00:01:56 +03:00
Brian Paul
38f5641106 Merge branch 'mesa_7_5_branch' 2009-08-26 14:49:15 -06:00
Brian Paul
b2b220e622 i965: init the tex_units_used field 2009-08-26 14:47:50 -06:00
Brian Paul
a9a6399cd3 i965: fix incorrect tex unit in emit_tex() and emit_txb()
The instructions we're translating already went through the brw_wm_pass_fp()
function which does the sampler->texture unit mapping.  We were applying
the sample->unit mapping a second time in the GLSL texture emitters.
Often, this made no difference but other times it could lead to accessing
an invalid texture and could cause a GPU lockup.
2009-08-26 14:46:58 -06:00
Brian Paul
81a101b5be i965: clean-up tex target switches 2009-08-26 14:43:45 -06:00
Brian Paul
6df38e6f5a glsl: asst. clean-ups in set_program_uniform()
Remove redunant type check for samplers (assert instead).
Move some local vars.  Update comments.
2009-08-26 14:35:45 -06:00
Brian Paul
babb5ba9a9 glsl: signal that the program needs to be re-translated when samplers change 2009-08-26 14:29:50 -06:00
Brian Paul
7205221051 progs/glsl: asst. changes in shtest.c 2009-08-26 12:16:18 -06:00
Brian Paul
af7315e58b i965: added texture unit sanity check
Check that all the textures needed by the current fragment program
actually exist and are valid.
2009-08-26 12:08:23 -06:00
Brian Paul
34da6024e3 i965: keep track of which texture units the fragment shader accesses
We'll use this for debug/sanity checking.
2009-08-26 12:07:03 -06:00
Brian Paul
d09d03aa42 docs: document sampler array bug fix 2009-08-26 12:04:35 -06:00
Brian Paul
f8b344114f i965: clean up texture target switches 2009-08-26 12:02:24 -06:00
Brian Paul
f05344fcea mesa: var renaming, new assertion 2009-08-26 12:02:24 -06:00
Brian Paul
dd528f0ec1 mesa: additional instruction field size assertions 2009-08-26 12:02:24 -06:00
Brian Paul
476290946e Merge branch 'mesa_7_5_branch' 2009-08-26 12:01:23 -06:00