summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* dri: Pass the __DRIscreen and the __DRIscreen private back to image lookupKristian Høgsberg2010-09-2311-23/+21
| | | | | We will typically have a current context when we need to lookup the image, but the lookup implementation don't need it so drop it.
* glx: Hold on to drawables if we're just switching to another contextKristian Høgsberg2010-09-231-1/+4
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=30234
* i965: Also enable CC statistics when doing OQs.Eric Anholt2010-09-221-3/+4
| | | | | | | | | | This is required by the spec, so respect that. (oh, and it was required to actually fix occlusion-query-discard, though I didn't know at the time of the commit since o-q-discard was hanging the GPU) (cherry picked from commit 4a0bc4716db7bbcbcd65c0f993704733f47d41f7)
* ir_to_mesa: Only compare vector_elements present for any_nequal/all_equalEric Anholt2010-09-221-2/+18
| | | | | Fixes: glsl-mat-from-int-ctor-03 (cherry picked from commit eaa6bf59db68f97fa32c3395eb4aa6e589f34b26)
* i965: Track the windowizer's dispatch for kill pixel, promoted, and OQEric Anholt2010-09-223-6/+23
| | | | | | | | | Looks like the problem was we weren't passing the depth to the render target as expected, so the chip would wedge. Fixes GPU hang in occlusion-query-discard. Bug #30097 (cherry picked from commit dd9a88f4ddf4e5fa384792f891a1cc3d8ff73946)
* glsl: Add definition of gl_TextureMatrix inverse/transpose builtins.Eric Anholt2010-09-221-0/+3
| | | | | | Fixes glsl2/builtin-texturematrix. Bug #30196. (cherry picked from commit b5bb21562942dab7571ef748c3ca562a66f25b33)
* dri2: Make createImageFromName() take a __DRIscreen instead of __DRIcontextKristian Høgsberg2010-09-224-10/+8
| | | | | | | We can't expect to have a context when this is called, and we don't need one so just require a __DRIscreen instead. Reported by Yu Dai <[email protected]>
* llvmpipe: use draw module to draw spritesBrian Paul2010-09-221-6/+3
| | | | | | | For the 7.9 branch, this is simpler than merging the sprite-coord branch and less likely to break other drivers. Fixes fd.o bug 29849.
* glsl2: fix typo in error msgBrian Paul2010-09-211-1/+1
| | | | (cherry picked from commit 2b95525429935474ee4b507348507da45adc6872)
* llvmpipe: fix flatshading in new line codeKeith Whitwell2010-09-211-6/+13
| | | | Calculate interpolants before rearranging the vertices.
* docs: mark as obsolete, remove dead linksBrian Paul2010-09-201-4/+6
| | | | (cherry picked from commit 0bc3e1f4f4b0827ac4a880cdbdb1da069e80fac9)
* docs: remove old broken linkBrian Paul2010-09-201-1/+0
| | | | (cherry picked from commit a8fde1ba4df17427c82404e0c91930a6290391bf)
* llvmpipe: fix query bug when no there's no sceneBrian Paul2010-09-201-2/+3
| | | | (cherry picked from commit 7888a2f82200738ac03c78d9900eb028d48725a1)
* gallivm: fix incorrect vector shuffle datatypeBrian Paul2010-09-201-1/+5
| | | | | | The permutation vector must always be a vector of int32 values. (cherry picked from commit 3c9f4c7b750ce7e9c60d75dbe186aaaf69e4baab)
* st/mesa: fix assertion failure in GetTexImage for cubemapsMarek Olšák2010-09-201-0/+6
| | | | | | | Can be reproduced with mesa/demos/src/tests/blitfb. NOTE: This is a candidate for the 7.9 branch. (cherry picked from commit 168554904bc079650124fbd026d9b75834eabc92)
* i915g: Link with wrapper sw winsys with sconsJakob Bornecrantz2010-09-201-0/+1
| | | | cherry picked from commit 208f1f381076560cb76aac753d6da2287f53ddb5
* svga: Integer constant register file has a separate namespace.Michal Krol2010-09-203-8/+9
| | | | | | Count int and float constants independently. Since there are only few i# constants available and hundreds of c# constants, it would be too easy to end up with an i# declaration out of its range.
* svga: Fix relative addressing translation for pixel shaders.Michal Krol2010-09-201-14/+37
| | | | | | | | | | | | Pixel shaders do not have address registers a#, only one loop register aL. Our only hope is to assume the address register is in fact a loop counter and replace it with aL. Do not translate ARL instruction for pixel shaders -- MOVA instruction is only valid for vertex saders. Make it more explicit relative addressing of inputs is only valid for pixel shaders and constants for vertex shaders.
* scons: Link against talloc in the Gallium DRI driversJakob Bornecrantz2010-09-201-0/+1
| | | | cherry picked from commit b83156d42fc0230fdbe0a566cc57ed87792ca887
* auxiliary: fix depth-only and stencil-only clearsLuca Barbieri2010-09-191-1/+1
| | | | | | | Depth-only and stencil-only clears should mask out depth/stencil from the output, mask out stencil/input from input, and OR or ADD them together. However, due to a typo they were being ANDed, resulting in zeroing the buffer.
* egl: Enable drm platform by default.Chia-I Wu2010-09-191-0/+3
| | | | | This enables EGL_MESA_drm_display for st/egl in the default setup. (cherry picked from commit 2a910b339672e80e70d49d01ac7e8e870068e7ad)
* st/egl: s/kms/drm/ on the drm backend.Chia-I Wu2010-09-193-303/+303
| | | | | s/kms/drm/, s/kdpy/drmdpy/, and so forth. (cherry picked from commit e4513e7fb96c6336d8c7fcdadfaddb6b335a736e)
* st/egl: Rename kms backend to drm.Chia-I Wu2010-09-1910-24/+24
| | | | | | The main use of the backend is to support EGL_MESA_drm_display. drm should be a better name. (cherry picked from commit e7424d72405a1cb1fb5ac625b340043aaa9f88be)
* st/egl: Split modeset code support to modeset.c.Chia-I Wu2010-09-193-587/+647
| | | | | | The modeset code supports now obsolete EGL_MESA_screen_surface. Move it to a file of its own. (cherry picked from commit c7c2e7d0ce97b1586219be2ba742758f23f5c7aa)
* tgsi/sse: fix aos_to_soa() loop to handle num_inputs==0Brian Paul2010-09-171-6/+9
| | | | | | | | | | Basically, change the loop from: do {...} while (--num_inputs != 0) into: while (num_inputs != 0) { ... --num_inputs; } Fixes fd.o bug 29987. (cherry picked from commit 4b27c614cf4b06ad0c2a0414f60737f19eed021d)
* libgl-xlib: Remove unused st_api_create_OpenGL.Chia-I Wu2010-09-171-8/+0
| | | | st/egl no longer relies on libGL for OpenGL support.
* targets/egl: Use C++ compiler to link GL/ES state trackers.Chia-I Wu2010-09-171-3/+10
| | | | | Otherwise, applications compiled with C compiler might have trouble using them.
* mesa: include mfeatures.h in formats.cBrian Paul2010-09-161-0/+1
| | | | | | | Otherwise, FEATURE_EXT_texture_sRGB was undefined. This is (part of?) the fix for fd.o bug 30177. (cherry picked from commit 3a6f9d0f47861b1c618366d679ad8ddd9a06b323)
* r300g/swtcl: fix CS overrunMarek Olšák2010-09-162-8/+28
| | | | | https://bugs.freedesktop.org/show_bug.cgi?id=29901 (cherry picked from commit d4b2de13bc652cd134826801ada48d0bb88a8258)
* glx: add const qualifiers to __indirect_glMultiDrawArraysEXT()Brian Paul2010-09-161-2/+2
| | | | (cherry picked from commit 4cd751bcc48798f19b089f6cff58bfca2f18fe36)
* st/xlib: Notify the context when the front/back buffers are swapped.Chia-I Wu2010-09-163-4/+21
| | | | | | | | | The current context should be notified when the the front/back buffers of the current drawable are swapped. The notification was skipped when xmesa_strict_invalidate is false (the default). This fixes fdo bug #29774. (cherry picked from commit 03224f492dc9cee179ff9ed961be0443a3669dd1)
* mesa: Update ES APIspec.xml.Chia-I Wu2010-09-161-9/+5
| | | | | | | Enable some extensions now that the needed tokens are defined in GLES/glext.h and GLES2/glext.h. Update the prototype of MultiDrawArrays now that the prototype of _mesa_MultiDrawArraysEXT has been updated. (cherry picked from commit 9ca59b2427837b8a70b580d66b4909e5f8443945)
* glapi: Fix ES build errors again.Chia-I Wu2010-09-161-2/+2
| | | | | | | | This fixes an error in GLAPI ES. My build is ok with or without this patch, and the error affects others' setups. [Patch from Francesco Marella] (cherry picked from commit e3c46cf58684785ab16862548d6806227f0bdd21)
* glapi: Fix build errors for ES.Chia-I Wu2010-09-161-1/+1
| | | | | | | | The latest glext.h defines GL_FIXED. Test GL_OES_fixed_point instead to decide whether to define GLfixed and GLclampx. This fixes fdo bug #30205. (cherry picked from commit cad87ebc3a9c176a44f5193af7e16d6ecad4e03f)
* r600c: fix buffer height setting in dri2 caseAndre Maasikas2010-09-162-9/+46
| | | | | | | fbHeight is 0 in this case uncovered by changes in b0bc026c and should fix kernel rejecting command streams after that commit
* tgsi: fix incorrect usage_mask for shadow tex instructionsBrian Paul2010-09-151-5/+6
| | | | | | | | The shadow versions of the texture targets use an extra component (Z) to express distance from light source to the fragment. Fixes the shadowtex demo with llvmpipe. (cherry picked from commit 95254bbd2ddf0c6207a642604cc218ac9d711501)
* llvmpipe: return zero from floor_pot(zero)Keith Whitwell2010-09-151-1/+3
|
* r300g: fix buffer reuse issue caused by previous commitDave Airlie2010-09-151-3/+6
| | | | | | | caused by 0b9eb5c9bb03e5134d9a41786178100109e80c5a test run glxgears, resize. (cherry picked from commit 09ef8e9283f17e5dc9fa4a86c659048acda833cb)
* r300g: prevent creating multiple winsys BOs for the same handleMarek Olšák2010-09-152-4/+26
| | | | | | | | This fixes a DRM deadlock in the cubestorm xscreensaver, because somehow there must not be 2 different BOs relocated in one CS if both BOs back the same handle. I was told it is impossible to happen, but apparently it is not, or there is something else wrong. (cherry picked from commit 0b9eb5c9bb03e5134d9a41786178100109e80c5a)
* auxiliary: fix unintended fallthroughLuca Barbieri2010-09-141-0/+1
|
* r600c: fix setting negative values to bitfields7.9-branchpointAndre Maasikas2010-09-141-1/+1
| | | | | | | | | when setting negative integers to bitfields we could overwrite other parts of it. So mask the value to be written correctly. This is used quite often in the driver - hope it doesnt affect performace or uncover behaviour relied before... fixes strange effects when setting negative lodbias on evergreen
* mesa: upgrade wglext.h to version 22Brian Paul2010-09-142-106/+139
|
* mesa: upgrade glxext.h to version 32Brian Paul2010-09-142-2/+48
|
* mesa: update to version 64 of GL/glext.hBrian Paul2010-09-1414-102/+1050
| | | | | | A number of other files had to be updated as well because const qualifiers were added to the glMultiDrawArrays() function. Also, GL_FIXED is now defined in glext.h.
* mesa: move, redefine MESA_GEOMETRY_PROGRAMBrian Paul2010-09-142-9/+15
|
* glsl2: add case for ir_unop_noiseBrian Paul2010-09-141-0/+4
| | | | | Silences a compiler warning. Still need to add some assertions for this case.
* glsl2: fix commentsBrian Paul2010-09-143-3/+3
|
* mesa: Remove unnecessary FEATURE tests.Chia-I Wu2010-09-142-18/+0
| | | | | Remove all FEATURE tests in mesa/drivers/common/. They are not needed and the code looks better without them.
* mesa: Less FEATURE_ARB_sync tests.Chia-I Wu2010-09-145-25/+60
| | | | | Add dummy static inline definitions to syncobj.h when FEATURE_ARB_sync is 0, and remove most FEATURE_ARB_sync tests.
* mesa: Remove unused _MESA_INIT_*_FUNCTIONS.Chia-I Wu2010-09-1411-90/+0
| | | | | They were intended to be used to build OpenGL ES only DRI drivers, but that never happened.