Commit graph

92185 commits

Author SHA1 Message Date
Ben Skeggs
fbf4027dd9 nv50: fix EX2.. somehow 2008-06-29 15:46:14 +10:00
Ben Skeggs
7df7f7bb99 nv50: big fuckup, fix it 2008-06-29 15:46:14 +10:00
Ben Skeggs
52a69196c1 nv50: some fixes + MIN/MAX 2008-06-29 15:46:14 +10:00
Ben Skeggs
2a1fb44d75 nv50: checkpoint: shader code now exceeds caps of "old" code 2008-06-29 15:46:14 +10:00
Ben Skeggs
e55964099b nv50: remove hardcoded fp stuff 2008-06-29 15:46:14 +10:00
Ben Skeggs
8ec6415e9f nv50: start using interpreter for fragprog too, not hardcoded passthrough 2008-06-29 15:46:14 +10:00
Ben Skeggs
55b2fe1047 nv50: drop the majority of the old shader code, reimplement, only MOV so far. 2008-06-29 15:46:14 +10:00
Ben Skeggs
22e0acc466 nv50: split code/data upload out, fp will use it later on 2008-06-29 15:46:13 +10:00
Ben Skeggs
207b797472 nv50: DPH 2008-06-29 15:46:13 +10:00
Ben Skeggs
38ce697e59 nv50: implement SUB 2008-06-29 15:46:13 +10:00
Ben Skeggs
41cd9bddf7 nv50: fucking horrible hack, I really hate G8x shaders.. 2008-06-29 15:46:13 +10:00
Ben Skeggs
716c1cd2ec nv50: use "real" constbufs for shaders + tcb uploads 2008-06-29 15:46:13 +10:00
Ben Skeggs
f722fd937d nv50: import current "state of the art" nv50 code 2008-06-29 15:46:13 +10:00
Ben Skeggs
b6478021d5 nouveau: adapt to cpp->pf_block changes 2008-06-29 15:00:28 +10:00
Ben Skeggs
cc8e628563 Revert "mesa: Use the appropriate relocation."
This reverts commit cb09d1ef60.
2008-06-29 13:02:31 +10:00
Ben Skeggs
01de2293d5 Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1 2008-06-29 12:16:13 +10:00
Brian Paul
6cb1270491 s/GL_INVALID_VALUE/GL_INVALID_OPERATION/ in _mesa_get_uniformfv() 2008-06-28 16:48:58 -06:00
Brian Paul
b429e9b2d7 mesa: added null ptr checks 2008-06-28 16:48:58 -06:00
Brian Paul
9d94d133b0 mesa: added null ptr checks 2008-06-28 16:47:39 -06:00
Brian Paul
2242769a13 s/GL_INVALID_VALUE/GL_INVALID_OPERATION/ in _mesa_get_uniformfv() 2008-06-28 16:47:22 -06:00
Brian Paul
a1ec6efce0 mesa: check FEATURE_point_size_array 2008-06-28 16:15:03 -06:00
Brian Paul
d4b100a6a1 egl: set config's EGL_CONFORMANT, EGL_RENDERABLE_TYPE, EGL_SURFACE_TYPE attributes 2008-06-28 16:04:01 -06:00
Brian Paul
8f91a83669 egl: fix default value of EGL_SURFACE_TYPE, added some sanity check assertions 2008-06-28 16:03:28 -06:00
José Fonseca
0f9a1e43bc egl: WinCE doesn't have sys/types.h 2008-06-28 20:40:44 +09:00
Dan Nicholson
f6da1453c5 DRI-specific pkg-config file
Since the gl pkg-config file doesn't convey any specifics about the
backend in use, this adds a new pkg-config file for when DRI is in use.
This can be used by the xserver build to determine if the DRI and/or
GLX extensions are appropriate.
2008-06-27 16:25:28 -07:00
Dan Nicholson
985e1cdfe8 autoconf: Check for posix_memalign
Rather than just defining HAVE_POSIX_MEMALIGN on Linux, check whether
the function exists on all platforms and define the macro if it is.
2008-06-27 16:24:42 -07:00
Zack Rusin
a7499b7fc7 egl: helps if the stride is right 2008-06-27 16:47:22 -04:00
Zack Rusin
838b0d6e48 eh, we need a buildbot... fix the compilation 2008-06-27 15:56:09 -04:00
Roland Scheidegger
429a08384c gallium: handle msaa 2008-06-27 16:10:16 +02:00
Robert Ellison
a1fb565ea7 egl: These changes allow an eglBindAPI(EGL_OPENGL_ES_API) to succeed, and to work correctly with GLES1 and GLES2.
- egl_xdri.c just sets the EGL_OPENGL_ES_BIT as well as the
  EGL_OPENGL_BIT in ClientAPIsMask

- eglconfig.c allows the renderable type to include EGL_OPENGL_ES2_BIT
  as well as EGL_OPENGL_ES_BIT.

- egl_xlib.c sets the EGL_NATIVE_RENDERABLE attribute to EGL_FALSE for
  all softpipe configurations.  (Otherwise, an eglChooseConfig() that
  looks for particular values of EGL_NATIVE_RENDERABLE will fail.)
2008-06-27 07:17:02 -06:00
Jonathan White
b028b0cc53 egl: Windows updates to the platform.h files 2008-06-27 07:13:58 -06:00
Jakob Bornecrantz
5b9d823545 i915: Fix the last of the stride/pitch changes 2008-06-27 14:33:02 +02:00
José Fonseca
fb95b603ef mesa: Replace void * arithmetic. 2008-06-27 20:56:49 +09:00
José Fonseca
4f45dbc6aa gdi: Update for cpp removal. 2008-06-27 20:56:29 +09:00
José Fonseca
891469a3a5 cell: Update for cpp removal.
Not tested -- just mymic the softpipe changes.
2008-06-27 20:10:04 +09:00
José Fonseca
4ddd659679 gallium: Drop pipe_texture->cpp and pipe_surface->cpp.
The chars-per-pixel concept falls apart with compressed and yuv images,
where more than one pixel are coded in a single data block.
2008-06-27 19:37:56 +09:00
José Fonseca
05cfb4c4b8 scons: Get x86-64<->x86 cross build of assembly files right. 2008-06-27 13:41:23 +09:00
José Fonseca
6106db4c5d scons: Fix i965/xlib build. 2008-06-27 13:01:37 +09:00
José Fonseca
fb4361a93d scons: Fix typo. 2008-06-27 12:35:18 +09:00
José Fonseca
cb09d1ef60 mesa: Use the appropriate relocation.
I don't fully understand this, but this matches the assembly code gcc
generates glapi.c and fixes following error on x86-64 with assembly:

  relocation R_X86_64_PC32 against `_gl_DispatchTSD' can not be used when making a shared object
2008-06-27 12:34:57 +09:00
Eric Anholt
f059a33022 intel: Fix locking when doing intel_region_cow().
This was broken in the merge of 965 blit support.  It tried to lock only
when things were already locked.
2008-06-26 15:34:27 -07:00
Eric Anholt
93f701bc36 intel: Replace sprinkled intel_batchbuffer_flush with MI_FLUSH or nothing.
Most of these were to ensure that caches got synchronized between 2d (or meta)
rendering and later use of the target as a source, such as for texture
miptree setup.  Those are replaced with intel_batchbuffer_emit_mi_flush(),
which just drops an MI_FLUSH.  Most of the remainder were to ensure that
REFERENCES_CLIPRECTS batchbuffers got flushed before the lock was dropped.
Those are now replaced by automatically flushing those when dropping the lock.
2008-06-26 15:29:28 -07:00
Alan Hourihane
3b132b297f Check in SwapBuffers for any new pending dri2 events 2008-06-26 22:53:29 +01:00
José Fonseca
38d779a3e6 gallium: Describe pixel block.
Chars-per-pixel paradigm is not enough to represent compressed and yuv
pixel formats.
2008-06-26 23:39:13 +09:00
Brian Paul
d378f7b3df mesa: point size arrays 2008-06-25 08:45:14 -06:00
Eric Anholt
f6abe8f0f2 Merge commit 'origin/master' into drm-gem 2008-06-24 14:08:08 -07:00
Eric Anholt
5174b85a0c intel: Fix glCopyPixels when x or y are < 0 in hw coordinates.
Nothing would get drawn as the negative coordinates broke the rectangle
intersection code that used unsigned ints.  Tested with copypix demo and
sliding the copy to the upper left.
2008-06-24 14:04:11 -07:00
Eric Anholt
9a0d773116 i965: Use the shared intel_pixel_copy.c.
This disables the textured copy implementation on 965, which didn't appear
to work (mesa copypix demo, disable the blit path, move so that regions don't
overlap and textured is used, and you get garbage).  If we resurrect this for
i965, I'd rather it used the 915-style metaops instead.  Current metaops code
left in place so that whoever picks it up has a reference.
2008-06-24 13:18:40 -07:00
Patrice Mandin
b831aa06dc nv30: add context value 2008-06-24 21:04:37 +02:00
Eric Anholt
744357e29c intel: Same pixel function init for everyone now. 2008-06-24 11:49:21 -07:00