Commit graph

4151 commits

Author SHA1 Message Date
Brian Paul
bb45e6f07b gallium: fix debug_printf() format string 2009-08-11 09:30:12 -06:00
Michel Dänzer
e93be5132c r300g: Fix up remaining VAP_CNTL_STATUS writes for big endian. 2009-08-11 09:16:48 +02:00
Michel Dänzer
bb91368003 r300g: Emit relocations for pitch registers.
Fixes CS failures with tiling enabled kernels.
2009-08-11 09:13:12 +02:00
Cooper Yuan
2cbd3fce8f r300g: a typo of debug message 2009-08-11 14:39:58 +08:00
Corbin Simpson
10b9d9f895 r300g: Knock out another fragment of invariant state.
Colorbuffer setup will always happen.
2009-08-07 20:50:42 -07:00
Corbin Simpson
847fcb645c gallium: Move minify() to u_math.
minify() is usually used in mipmap size calculation. Strangely enough,
we all defined it as MAX2(1, d >> 1); imagine that. :3
2009-08-07 20:50:42 -07:00
Corbin Simpson
c58133b81a r300g: Remove r300_constant_buffer::user_count.
Not needed with new compiler.
2009-08-07 20:50:42 -07:00
Jakob Bornecrantz
7de5e60c18 i915g: Don't forget x/y coords in transfers
Fixes demos/ray.
2009-08-08 03:20:24 +02:00
Jakob Bornecrantz
738e02c3c8 i915g: Don't try to free a mapped buffer at shutdown 2009-08-08 03:19:01 +02:00
Brian Paul
9de26ccbcc util: fix incorrect assertion
Check that the dest surface/format is renderable.
2009-08-07 13:48:26 -06:00
Brian Paul
f36d012191 util: include u_surface.h, added comment 2009-08-07 13:48:26 -06:00
Brian Paul
513a82cb1b util: use util_same_surface() to compare surface pointers 2009-08-07 13:48:26 -06:00
Brian Paul
abb120fe5b util: added util_same_surface() helper function 2009-08-07 13:48:26 -06:00
Jakob Bornecrantz
8662f2c542 i915g: Compile with scons 2009-08-06 13:50:46 +01:00
Jakob Bornecrantz
c818efd0b3 identity: Use the correct texture 2009-08-06 13:20:49 +01:00
Jakob Bornecrantz
b6c6551686 st/xorg: If we have DRI2 we should also have some sort of hw support 2009-08-06 00:52:13 +01:00
Jakob Bornecrantz
b6c9401f13 i915g: Always run in sync with the HW 2009-08-06 00:52:13 +01:00
Jakob Bornecrantz
901b87547e i915g: The i915 seems more happier with sampler domain so lets use that 2009-08-06 00:52:13 +01:00
Jakob Bornecrantz
7a20f50c60 i915g: Dirty fix for VBO module double flush assert 2009-08-06 00:52:13 +01:00
Jakob Bornecrantz
66b00380a2 i915g: Switch to mapping the batch buffer instead of using subdata 2009-08-06 00:52:13 +01:00
Chia-I Wu
6f97a41964 egl_softpipe: Add support for pbuffer binding.
This adds support for eglBindTexImage and eglReleaseTexImage.  They rely
on the state tracker to do the real work.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-05 16:08:07 -06:00
Chia-I Wu
0153614cb0 egl_softpipe: Flush when switching current context.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-05 16:07:39 -06:00
Brian Paul
1f71305993 Merge branch 'mesa_7_5_branch'
Conflicts:

	src/mesa/main/state.c
2009-08-05 14:13:48 -06:00
Brian Paul
2cd33afa00 util: added comment/question about blit clipping 2009-08-05 13:22:26 -06:00
Brian Paul
4f36164024 util: added util_blit_pixels() overlap test
A comment alluded to this.  Now it's checked.
2009-08-05 13:19:03 -06:00
Brian Paul
05d393f59f util: fix util_blit_pixels() test for surface_copy() path
For the surface_copy() path require same format, no flipping and no stretching.

Fixes progs/tests/copypixrate -blit
2009-08-05 13:09:15 -06:00
Brian Paul
854ea483d4 util: reformatting and comments 2009-08-05 13:08:19 -06:00
Jakob Bornecrantz
3905119b47 st/xorg: Make it work again 2009-08-05 19:29:31 +01:00
Jakob Bornecrantz
8ccec83e63 st/egl: Create primary texture not display target 2009-08-05 19:29:30 +01:00
Jakob Bornecrantz
0500404cdf i915g: Treat primary textures as scanout buffers 2009-08-05 19:29:30 +01:00
Jakob Bornecrantz
ec269c198a i915g: Link with trace on EGL and Xorg 2009-08-05 19:29:30 +01:00
Jakob Bornecrantz
1f9ee623d1 trace: Use correct texture in drm_api wrapper 2009-08-05 19:29:29 +01:00
Jakob Bornecrantz
6160c8be57 softpipe: Also defere primary textures to backend 2009-08-05 19:29:29 +01:00
Michel Dänzer
048f988aeb r300g: Slightly saner initialization of some texture / transfer fields. 2009-08-04 10:57:47 +02:00
Chia-I Wu
7420e33848 egl_softpipe: Add support for pbuffer surface.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-03 11:36:08 -06:00
Chia-I Wu
07ee01365a egl: Replace IsBound by a pointer to the binding.
IsBound tells if a context or surface is current.  What it does not tell
is, to which thread a context is current, or to which context a surface
is current.  This commit replaces IsBound by a pointer to the binding
thread or context.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-03 11:34:37 -06:00
Brian Paul
4f61bc135a tgsi: report opcode name in addition to the number when translation fails 2009-08-03 11:24:09 -06:00
Brian Paul
c3c90c2dd9 tgsi: added tgsi_get_opcode_name() 2009-08-03 11:24:09 -06:00
Brian Paul
2e9bf10014 gallium: comments, reformatting 2009-08-03 11:24:09 -06:00
Corbin Simpson
30bca7a4e6 Merge commit 'nha/r300-compiler-gallium' 2009-08-02 16:56:52 -07:00
Patrice Mandin
c1785c19ca mesa st: Move logbase2 function to util/u_math.h 2009-08-01 11:03:30 +02:00
Michal Krol
cb90c43676 Rename TGSI LOOP instruction to better match theri usage.
The LOOP/ENDLOOP pair is renamed to BGNFOR/ENDFOR as its behaviour
is similar to a C language for-loop.

The BGNLOOP2/ENDLOOP2 pair is renamed to BGNLOOP/ENDLOOP as now
there is no name collision.
2009-07-31 18:14:40 +02:00
Nicolai Hähnle
d0c398a8e2 r300g: Use radeon compiler for fragment programs
This is entirely untested on R500, and needs more testing on R300.
2009-07-30 23:55:12 +02:00
Nicolai Hähnle
fbc88a7334 r300g: Remove extraneous printf
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-30 23:45:18 +02:00
Nicolai Hähnle
188f8c6792 r300g: Use r300compiler for vertex shaders 2009-07-30 23:45:18 +02:00
Chia-I Wu
27fb3ff858 softpipe: Mark texture dirty when unmapped.
When a texutre transfer is mapped for writing, mark the texture dirty
when unmapped.  This was done in surface creation, and this commit moves
it to happen in texture unmapping.

This fixes subtex test in progs/tests/.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-07-30 10:42:46 -06:00
Brian Paul
e87320b5e0 Merge branch 'mesa_7_5_branch' 2009-07-30 08:22:57 -06:00
Michal Krol
6c70285e33 tgsi: Add proper constraints to sanity. 2009-07-30 11:39:06 +02:00
Michal Krol
cf8907018e tgsi: Declare a LOOP register.
The only valid usage for LOOP/ENDLOOP instructions
is LOOP[0] as a destination register.
The only valid usage for the remaining instructions
is LOOP[0].x as an indirect register.
2009-07-30 10:34:06 +02:00
Michal Krol
65fb2c52f9 tgsi: Fix number operands for LOOP/ENDLOOP. 2009-07-30 10:33:18 +02:00