Chia-I Wu [Thu, 1 Oct 2009 10:22:33 +0000 (18:22 +0800)]
egl_glx: Clean up surface functions.
Separete Drawable and GLXDrawable. Add support for pbuffer and pixmap
surfaces on GLX <= 1.3. Remove surface binding code that will never
work.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Chia-I Wu [Thu, 1 Oct 2009 10:16:10 +0000 (18:16 +0800)]
egl_glx: Clean up the initialization code.
Proper detection of GLX extensions. Convert fbconfigs or visuals in a
more unified way and validate the resulting configs.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Chia-I Wu [Fri, 16 Oct 2009 04:18:25 +0000 (12:18 +0800)]
egl: Correct conversion of native visual type.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Ben Skeggs [Thu, 22 Oct 2009 11:55:22 +0000 (21:55 +1000)]
nv50: support 3D class 0x8597, remove redundant unknown chipset detection
Corbin Simpson [Thu, 22 Oct 2009 07:21:08 +0000 (00:21 -0700)]
r300g: Check for NULL Draw during flush.
Split from the fastpath WIP.
Corbin Simpson [Thu, 22 Oct 2009 06:26:02 +0000 (23:26 -0700)]
r300g: Update comments, function names in r300_state_inlines.
Corbin Simpson [Thu, 22 Oct 2009 06:23:37 +0000 (23:23 -0700)]
r300g: Update comments, asserts, indents in r300_texture.
I wish I knew enough about textures to really really REALLY fix that file.
Corbin Simpson [Thu, 22 Oct 2009 05:54:52 +0000 (22:54 -0700)]
r300g: Remove unused debug flag.
Corbin Simpson [Thu, 22 Oct 2009 05:53:37 +0000 (22:53 -0700)]
r300g: Cleanup old static shader state.
Marc Dietrich [Sun, 18 Oct 2009 15:28:33 +0000 (08:28 -0700)]
gallium/util: fix cpu detection on ppc
As we are compiling with -D_BSD_SOURCE, sigjmp_buf and siglongjmp
should be replaced by the non-sig functions (see man 3 setjmp).
Tested on linux/cell.
Brian Paul [Tue, 20 Oct 2009 22:13:08 +0000 (16:13 -0600)]
mesa: added _mesa_dump_renderbuffers() debug code
Patrice Mandin [Wed, 21 Oct 2009 20:01:03 +0000 (22:01 +0200)]
nouveau: nv30: Do not use assert to return NULL
Patrice Mandin [Wed, 21 Oct 2009 19:56:09 +0000 (21:56 +0200)]
nouveau: nv30: check number of colour buffers to bind
José Fonseca [Tue, 20 Oct 2009 09:54:21 +0000 (10:54 +0100)]
llvmpipe: Remove extraneous name in lp_type pre-declaration.
Corbin Simpson [Wed, 21 Oct 2009 13:49:16 +0000 (06:49 -0700)]
r300g: No debug in r300_state.
Corbin Simpson [Wed, 21 Oct 2009 13:31:36 +0000 (06:31 -0700)]
r300g: Cleanup header includes.
Corbin Simpson [Wed, 21 Oct 2009 12:54:49 +0000 (05:54 -0700)]
r300g: Don't use getenv; use debug_get_*_option instead.
Corbin Simpson [Wed, 21 Oct 2009 12:48:45 +0000 (05:48 -0700)]
r300g: Don't use the hashtable internally.
As osiris pointed out, glxgears slowly gets slower for some reason
when it's enabled, and it's not helping at the moment, so just turn
it off.
Corbin Simpson [Wed, 21 Oct 2009 12:45:05 +0000 (05:45 -0700)]
r300g: Examine vertex attribute type on HW TCL too.
Corbin Simpson [Wed, 21 Oct 2009 13:47:05 +0000 (06:47 -0700)]
r300g: Also kill r300_shader_inlines with fire.
Corbin Simpson [Wed, 21 Oct 2009 13:44:16 +0000 (06:44 -0700)]
r300g: Kill r300_surface with fire.
If you really want to see it again, check the history.
Eric Anholt [Tue, 20 Oct 2009 21:51:53 +0000 (14:51 -0700)]
intel: Fix flipped condition in ARB_sync GetSYnciv(GL_SYNC_STATUS).
Bug #24435
Eric Anholt [Tue, 20 Oct 2009 00:54:42 +0000 (17:54 -0700)]
meta: Fix the BufferSubData in meta clear to be BufferData.
Fixes a 3.4% +/- 1.3% performance regression in my GL demo (n=3). The
other meta code could probably also use the same treatment.
Jakob Bornecrantz [Tue, 20 Oct 2009 15:52:33 +0000 (17:52 +0200)]
st/xorg: Move drm init to own function
Jakob Bornecrantz [Tue, 20 Oct 2009 15:17:41 +0000 (17:17 +0200)]
trace: Check for destroy before calling it
Jakob Bornecrantz [Tue, 20 Oct 2009 15:18:25 +0000 (17:18 +0200)]
st/xorg: Cleanly shutdown
Jakob Bornecrantz [Mon, 19 Oct 2009 05:49:40 +0000 (07:49 +0200)]
st/xorg: Remove output functions not used
Zack Rusin [Tue, 20 Oct 2009 03:48:38 +0000 (23:48 -0400)]
st/xorg: makefile garbage
Zack Rusin [Tue, 13 Oct 2009 17:06:39 +0000 (13:06 -0400)]
st/xorg: implement basic src/mask transformations
plus fix filters
Corbin Simpson [Mon, 19 Oct 2009 20:51:28 +0000 (13:51 -0700)]
r300g: Demonstratory kludge to unbreak glxgears.
We *must* recalculate something in vformat every rebind; let's see
if we can't narrow it down a bit.
Corbin Simpson [Mon, 19 Oct 2009 20:06:45 +0000 (13:06 -0700)]
dri-st: Add EXT_provoking_vertex.
Hm, I could have sworn I did this before?
Jakob Bornecrantz [Sun, 18 Oct 2009 09:49:44 +0000 (11:49 +0200)]
st/xorg: Switch to set_mode_major
Jakob Bornecrantz [Sun, 18 Oct 2009 13:42:25 +0000 (15:42 +0200)]
st/xorg: Massivly redo root pixmap creation
Jakob Bornecrantz [Sun, 18 Oct 2009 09:46:19 +0000 (11:46 +0200)]
st/xorg: Clean up cursor functions a bit
Jakob Bornecrantz [Sun, 18 Oct 2009 13:25:30 +0000 (15:25 +0200)]
st/xorg: Support more then one output of a given type
Jakob Bornecrantz [Sun, 18 Oct 2009 05:50:14 +0000 (07:50 +0200)]
st/xorg: Change how disable accel is handled
Christoph Bumiller [Mon, 19 Oct 2009 16:17:45 +0000 (18:17 +0200)]
nv50: add support for address regs
Allow indirect uniform access and increase the
limit on parameters from 128 to 512.
Christoph Bumiller [Mon, 19 Oct 2009 15:53:31 +0000 (17:53 +0200)]
nv50: cleanup emit_kil
Christoph Bumiller [Mon, 19 Oct 2009 15:47:29 +0000 (17:47 +0200)]
nv50: implement TGSI_OPCODE_CMP
Christoph Bumiller [Tue, 13 Oct 2009 13:09:13 +0000 (15:09 +0200)]
nv50: quick fix for insn src negation
We only have a per nv50_reg negation flag, if an
nv50_reg is used more than once in a TGSI op with
different sign modes, we'd generate wrong code.
We probably can't do much better without more
invasive changes.
Christoph Bumiller [Wed, 14 Oct 2009 19:27:35 +0000 (21:27 +0200)]
nv50: add support for DDX and DDY opcodes
Christoph Bumiller [Wed, 14 Oct 2009 19:23:29 +0000 (21:23 +0200)]
nv50: submit user vbo data through the fifo
Requesting a new real buffer from the kernel and
copying all the data is wasteful e.g. if only a
few (but widely spread) vertices are accessed.
Christoph Bumiller [Sat, 10 Oct 2009 11:13:16 +0000 (13:13 +0200)]
nv50: use SIFC for TIC, TSC upload
Add proper flushes for TIC and TSC and remove
the costly 2D.0110 flush in nv50_flush.
Correct TIC and TSC bo sizes.
Christoph Bumiller [Sat, 10 Oct 2009 11:18:07 +0000 (13:18 +0200)]
nv50: nicer texture format switch
Similar to nv40.
Alex Deucher [Mon, 19 Oct 2009 16:10:59 +0000 (12:10 -0400)]
Merge branch 'mesa_7_6_branch' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa
regenerated lex.yy.c
Mathias Fröhlich [Mon, 19 Oct 2009 15:47:21 +0000 (11:47 -0400)]
r300: fix texture size handling with size > 2048
The in kernel texture check fails because of both
bit11 flags being set on 16x16 textures. It tuns out
that these bits are still set and not cleared in the
pp_txpitch field of the texture. The attached patch
at least helps for this case on my machine. It clears
the bit 11 from the pitch field if the texture is smaller
and masks out that hight bits on the conventional width
and height field.
Fixes bug 24584
Robert Noland [Mon, 19 Oct 2009 14:47:39 +0000 (09:47 -0500)]
r600: Fix size calculation for 24 bit depth
size was being calculated based on 3 bytes per pixel with 24 bit depth
instead of 4 bytes. This caused corruption in the bottom 25% of objects.
This finishes fixing the menu/text corruption in compiz/kde4.
Signed-off-by: Robert Noland <rnoland@2hip.net>
Ben Skeggs [Sun, 18 Oct 2009 23:28:59 +0000 (09:28 +1000)]
nouveau: implement is_{texture,buffer}_referenced properly
Ben Skeggs [Wed, 7 Oct 2009 06:07:34 +0000 (16:07 +1000)]
drm/nv50: write tic/tsc setup to correct slots when skipping units
Corbin Simpson [Sun, 18 Oct 2009 22:54:39 +0000 (15:54 -0700)]
r300g: Fix up a bunch of warnings.
Corbin Simpson [Sun, 18 Oct 2009 17:30:18 +0000 (10:30 -0700)]
r300g: Add another ZTOP condition.
I don't even know if texkill works right now.
José Fonseca [Sun, 18 Oct 2009 13:31:58 +0000 (14:31 +0100)]
llvmpipe: Allocate texture storage for whole quads.
Corbin Simpson [Sun, 18 Oct 2009 04:32:56 +0000 (21:32 -0700)]
gallium: Permit surface_copy and surface_fill to be NULL.
Uf. Lots of files touched. Would people with working vega, xorg, dri1, etc.
please make sure you are not broken, and fix yourself up if you are.
There were only two or three places where the code did not have painful
fallbacks, so I would advise st maintainers to find less painful workarounds,
or consider overhauling util_surface_copy and util_surface_fill.
Per ymanton, darktama, and Dr_Jakob's suggestions, clear has been left as-is.
I will not add PIPE_CAP_BLITTER unless it is deemed necessary.
Corbin Simpson [Sun, 18 Oct 2009 03:53:19 +0000 (20:53 -0700)]
r300g: Squash format warning.
Won't ever be supported.
Corbin Simpson [Sun, 18 Oct 2009 03:47:45 +0000 (20:47 -0700)]
r300g: Use a dirty test to bring framerate back up.
This is just split out from the next commit, that's all.
Corbin Simpson [Sun, 18 Oct 2009 03:29:27 +0000 (20:29 -0700)]
r300g: Also have rs_block keyed to the current shader combo.
Eliminates part of the glxgears corruption here. Need to clean up PSC more,
to get rid of the rest of it.
Corbin Simpson [Sun, 18 Oct 2009 03:05:23 +0000 (20:05 -0700)]
r300g: Fix u_hash_table rename.
Corbin Simpson [Sun, 18 Oct 2009 02:58:23 +0000 (19:58 -0700)]
Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa
Patrice Mandin [Sat, 17 Oct 2009 18:49:18 +0000 (20:49 +0200)]
nouveau: nv40: Use same workaround as i915 for segfault related to vbo
Patrice Mandin [Sat, 17 Oct 2009 18:46:19 +0000 (20:46 +0200)]
nouveau: nv30: Remove duplicate case. Was a typo for X8R8G8B8, but that will never be use for front buffer.
Patrice Mandin [Sat, 17 Oct 2009 18:27:24 +0000 (20:27 +0200)]
nouveau: nv30: Use same workaround as i915 for segfault related to vbo
José Fonseca [Sat, 17 Oct 2009 10:45:04 +0000 (11:45 +0100)]
util: Rename from u_* to util_* while we're at it.
To be consistent with the rest.
Chris Wilson [Sat, 17 Oct 2009 07:25:48 +0000 (08:25 +0100)]
intel: Disallow relocations to the byte beyond the end of the buffer
Brian Paul [Fri, 16 Oct 2009 15:42:30 +0000 (09:42 -0600)]
mesa: fix/update some comments
Brian Paul [Fri, 16 Oct 2009 15:33:11 +0000 (09:33 -0600)]
mesa: lift default symlinks target into Makefile.template
Driver Makefiles can still add symlink dependencies/rules if needed.
Brian Paul [Fri, 16 Oct 2009 15:25:05 +0000 (09:25 -0600)]
mesa: use EXTRA_MODULES and SUBDIRS to build r300 compiler
This is a bit cleaner and avoids rebuilding the r300_dri.so library all
the time.
Brian Paul [Fri, 16 Oct 2009 15:21:45 +0000 (09:21 -0600)]
mesa: added SUBDIRS support in dri/Makefile.template
Brian Paul [Fri, 16 Oct 2009 14:12:47 +0000 (08:12 -0600)]
mesa: move a comma
Brian Paul [Thu, 15 Oct 2009 21:25:52 +0000 (15:25 -0600)]
mesa: added MESA_GLSL=useprog debug flag
This logs glUseProgram() calls to stderr.
Maciej Cencora [Fri, 16 Oct 2009 18:21:17 +0000 (20:21 +0200)]
r300: fix vertex program parameters limits
Corbin Simpson [Fri, 16 Oct 2009 16:45:07 +0000 (09:45 -0700)]
radeon-gallium: Use debug_get_bool_option instead of getenv.
Corbin Simpson [Fri, 16 Oct 2009 15:39:59 +0000 (08:39 -0700)]
r300g: Use a hash table to look up vertex info.
Need to move rs_block to this, too.
Also, I'm getting massive amounts of flicker for some reason; I bet we've gotta
re-re-examine PSC and friends. :C
Corbin Simpson [Fri, 16 Oct 2009 15:27:56 +0000 (08:27 -0700)]
util: Change function names to begin with u_.
Avoids link-time clashes with Mesa's internal hash table.
Brian Paul [Fri, 16 Oct 2009 13:38:39 +0000 (07:38 -0600)]
docs: document GLSL float parsing bug fix
Brian Paul [Wed, 14 Oct 2009 20:19:03 +0000 (14:19 -0600)]
mesa: use C locale for _mesa_strtod()
_mesa_strtod() is used for shader/program parsing where the decimal
point character is always '.' Use strtod_l() with a "C" locale to
ensure correct string->double conversion when the actual locale uses
another character such as ',' for the decimal point.
Fixes bug 24531.
José Fonseca [Fri, 16 Oct 2009 10:39:29 +0000 (11:39 +0100)]
progs/tests: Use rand() instead of random().
Forgot these on previous commit.
José Fonseca [Fri, 16 Oct 2009 10:39:29 +0000 (11:39 +0100)]
progs/tests: Use rand() instead of random().
More portable. Same implementation on Linux.
Vinson Lee [Fri, 16 Oct 2009 10:36:09 +0000 (11:36 +0100)]
prog/tests: Fix MSVC build.
Corbin Simpson [Thu, 15 Oct 2009 23:58:26 +0000 (16:58 -0700)]
r300g: Set logical ID for each emitted texture/sampler.
multitexarray works on my r300, but texrect doesn't.
Patrice Mandin [Thu, 15 Oct 2009 20:41:09 +0000 (22:41 +0200)]
nouveau: nv30: Hack to enforce same number of bits as front buffer, for render targets
Patrice Mandin [Thu, 15 Oct 2009 19:58:44 +0000 (21:58 +0200)]
nouveau: nv30: refuse binding a colour buffer with a zeta buffer with different bits, till the backend can tell Mesa not to do that.
Zack Rusin [Sun, 11 Oct 2009 16:54:11 +0000 (12:54 -0400)]
st/xorg: refix source over
Brian Paul [Thu, 15 Oct 2009 19:00:03 +0000 (13:00 -0600)]
progs/egl: put declarations before code
Chia-I Wu [Mon, 28 Sep 2009 06:12:39 +0000 (14:12 +0800)]
egl: Rework the synchronization primitives.
This adds error checking to the synchronization primitives. And
eglWaitGL is now implemented by eglWaitClient.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Chia-I Wu [Thu, 15 Oct 2009 03:08:48 +0000 (11:08 +0800)]
egl: Rework eglSwapInterval.
This adds error checking to eglSwapInterval and clamps the swap
interval.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Chia-I Wu [Thu, 15 Oct 2009 03:08:33 +0000 (11:08 +0800)]
egl: Rework error checking in eglSwapBuffers.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Chia-I Wu [Wed, 30 Sep 2009 07:08:34 +0000 (15:08 +0800)]
egl: Update comments about eglapi.c.
Mention that opaque handles are looked up and checked.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Chia-I Wu [Wed, 30 Sep 2009 07:34:45 +0000 (15:34 +0800)]
egl: Rework error checking in eglGetCurrentSurface.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Chia-I Wu [Thu, 1 Oct 2009 10:32:19 +0000 (18:32 +0800)]
egl: Include GL header in eglconfigutil.h.
This is just a cosmetic change.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Chia-I Wu [Sat, 10 Oct 2009 06:39:43 +0000 (14:39 +0800)]
egl: Fix GLX_USE_TLS build.
Remove an extraneous semicolon.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Chia-I Wu [Thu, 1 Oct 2009 08:40:09 +0000 (16:40 +0800)]
egl: Fix eglCheckConfigHandle.
A stupid bug by me made the check void.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Owen Taylor [Wed, 14 Oct 2009 20:20:07 +0000 (16:20 -0400)]
Use the right pitch when rendering to a texture
We need to get the pitch from the texture level we are rendering to,
rather than just using the base texel width.
Robert Noland [Wed, 14 Oct 2009 19:04:24 +0000 (14:04 -0500)]
r600: FRAG_ATTRIB_WPOS and FRAG_ATTRIB_FOGC appear to be supported.
Report unsupported attributes while I'm here.
Signed-off-by: Robert Noland <rnoland@2hip.net>
Robert Noland [Wed, 14 Oct 2009 19:02:12 +0000 (14:02 -0500)]
r600: cleanup in r600_cs_process_relocs().
Signed-off-by: Robert Noland <rnoland@2hip.net>
Robert Noland [Wed, 14 Oct 2009 18:58:56 +0000 (13:58 -0500)]
radeon: return EINVAL for 0 length buffers.
Signed-off-by: Robert Noland <rnoland@2hip.net>
Andre Maasikas [Thu, 15 Oct 2009 15:24:49 +0000 (11:24 -0400)]
r600: fix tfp1 bo size
Setting the wrong bo size resulting in an incomplete
read cache flush when reading the texture. This fixes the
compiz text corruption.
[agd5f: take hw pitch alignment into account]
Andre Maasikas [Mon, 12 Oct 2009 11:57:45 +0000 (14:57 +0300)]
r600: implement ProgramStringNotify
need this to properly test with piglit/glean vert/fragprog tests
copied mostly from r300, many thanks to osiris, nha, airlied, others...
Andre Maasikas [Mon, 12 Oct 2009 09:58:40 +0000 (12:58 +0300)]
r600: LIT dst.y gets value from src.x
seems I overlooked this when removing hardcoded swizzles for this
one previously
Andre Maasikas [Mon, 12 Oct 2009 09:20:26 +0000 (12:20 +0300)]
r600: DPH adds w comp of second operand, so set first one to 1 instead
Andre Maasikas [Fri, 9 Oct 2009 07:46:12 +0000 (10:46 +0300)]
r600: fixup KIL instruction a bit
- KILLGT takes 2 arguments
- arb KIL has no dst register
- add TODO about clause ending but currently piglit fp-kil passes and
does not hang the card