summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* glapi: regen API files for new extensionDave Airlie2011-09-0611-9551/+12893
| | | | Signed-off-by: Dave Airlie <[email protected]>
* glapi: add ARB_vertex_type_2_10_10_10_rev entrypoints. (v2)Dave Airlie2011-09-063-0/+229
| | | | | | | | | | These are the new API entrypoints for ARB_vertex_type_2_10_10_10_rev extension, along with the new INT_2_10_10_10_REV enum. v2: fixup crazy whitespace cut-n-paste mess Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* mesa: add a UniformBooleanTrue optionBryan Cain2011-09-054-2/+14
| | | | | | | | Drivers supporting native integers set UniformBooleanTrue to the integer value that should be used for true when uploading uniform booleans. This is ~0 for Gallium and 1 for i965. Reviewed-by: Ian Romanick <[email protected]>
* r600g: add 10/10/10/2 vertex format conversion.Dave Airlie2011-09-051-0/+6
|
* gallium: add missing formats for ARB_vertex_type_2_10_10_10_revDave Airlie2011-09-052-1/+15
| | | | | | | This just reorgs one define in csv file, and adds all the new formats that are needed for this extension. Signed-off-by: Dave Airlie <[email protected]>
* gallivm: fix build with LLVM 3.0svnTobias Droste2011-09-051-4/+10
| | | | | | | LLVM 3.0svn moved TargetRegistry.h and TargetSelect.h. See revision 138450 of LLVM. Signed-off-by: Tobias Droste <[email protected]>
* glsl_to_tgsi: fixes for native integers and integer booleansBryan Cain2011-09-041-52/+118
| | | | | This fixes all but one of the piglit regressions from enabling native integers in softpipe. The change to fix the last regression is still being discussed.
* xvmc: Replace frame_started by picture_structureMaarten Lankhorst2011-09-042-10/+16
| | | | | | | | | | | The preferred solution to keeping track of the picture structure has been putting it in the state tracker, so use picture_structure instead of frame_started to check if a frame needs to begin. If picture_structure has been changed, end the frame and start again. Signed-off-by: Maarten Lankhorst <[email protected]> Signed-off-by: Christian König <[email protected]>
* intel: fix build errorYuanhan Liu2011-09-031-1/+1
| | | | | | | | Fix a build error introduced by commit 6862b54f: i965_dri.so.tmp: undefined reference to `strerr' Signed-off-by: Yuanhan Liu <[email protected]> Reviewed-by: Paul Berry <[email protected]>
* mesa: handle zero-size buffers in MapBuffer and ranges in MapBufferRange (v3)Marek Olšák2011-09-022-25/+31
| | | | Reviewed-by: Brian Paul <[email protected]>
* glsl_to_tgsi: fix more potential shader reference leaksMarek Olšák2011-09-021-0/+10
| | | | The last one has been pointed out by Ian.
* intel: Give an explanation why we are exiting for debugging.Eugeni Dodonov2011-09-021-0/+1
| | | | | | | | | | This could happen in 3 different cases, and ERRNO can explain what happened. First case would be EIO (gpu hang), second EINVAL (something is wrong inside the batch), and we also discovered that sometimes it happens with ENOSPACE. All of those cases are different it it could be worth to at least know what happened. Signed-off-by: Eugeni Dodonov <[email protected]>
* i965/vs: Fix NULL pointer dereference in pre-Gen6 push constant loading.Kenneth Graunke2011-09-021-2/+2
| | | | | | | | | | | According to the comment, we need to load /some/ push constants on pre-Gen6 hardware or the GPU will hang. The existing code set these bogus parameters to NULL pointers; unfortunately, the code in brw_curbe.c that loads them dereferences those pointers. So, change them to be pointers to an actual floating point value of 0.0. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* intel: Upload batchbuffer contents even if INTEL_NO_HW is set.Eric Anholt2011-09-021-8/+8
| | | | | It is useful for debugging to dump batchbuffers while not actually executing them.
* gallium: add caps for MIN/MAX texel offsets.Dave Airlie2011-09-024-1/+16
| | | | | | | | As per Brian's suggestion, add caps for drivers that support texture offsets to advertise a min/max via TGSI, also use it in the state tracker. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* tgsi: add support for texture offsets to the TGSI IR. (v2)Dave Airlie2011-09-0213-20/+219
| | | | | | | | | | | | | This adds tokens for texture offsets, to store 4 * swizzled vec 3 for use in TXF and other opcodes. It also contains TGSI exec changes for softpipe to use this code, along with GLSL->TGSI support for TXF. v2: add some more comments, add back padding I removed. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* st/vdpau: Implement VdpOutputSurfacePutBitsIndexed and ↵Christian König2011-09-014-19/+307
| | | | | | | | VdpOutputSurfaceRenderOutputSurface This gets mplayers menu overlay working. Signed-off-by: Christian König <[email protected]>
* st/xvmc: the alpha component of palette entries isn't usedChristian König2011-09-011-1/+1
|
* g3dvl: extend the functionality of the compositorChristian König2011-09-015-33/+81
| | | | Prepares for vdpau menu overlay.
* gallium: add R8A8 and A8R8 UNORM formatsChristian König2011-09-012-0/+4
| | | | | | They are mostly used for menu overlay in video decoding. Signed-off-by: Christian König <[email protected]>
* st/xvmc: remove L4A4_UNORM workaroundChristian König2011-09-011-33/+5
| | | | | | This is no longer needed, since we now have native support for IA44 and AI44. Signed-off-by: Christian König <[email protected]>
* r600g: add support for R4A4 and A4R4 textures.Christian König2011-09-012-0/+8
| | | | | | Sampling worked out of the box, but this make them work as surface as well. Signed-off-by: Christian König <[email protected]>
* gallium: try to cleanup a bit of the format mess created with pipe-video mergeChristian König2011-09-014-82/+7
| | | | | | Start with correctly defining IA44 and AI44 formats. Signed-off-by: Christian König <[email protected]>
* wayland: Use wl_resource_* error functionsKristian Høgsberg2011-09-011-10/+10
|
* egl_dri2: Destroy callback in release_pending_bufferBenjamin Franzke2011-09-011-0/+2
|
* wayland-drm: Fix compilation with wayland masterBenjamin Franzke2011-09-011-9/+9
| | | | c661ecce introduced some not-yet-upstream stuff.
* swrast: get rid of needless do/whileBrian Paul2011-08-311-2/+2
|
* mesa: fix broken store_texel() functionsBrian Paul2011-08-312-39/+64
| | | | | | This fixes the swrast failures for piglit's fbo-generatemipmap-formats test (for uncompressed formats). At some point down the road this code will go away so I haven't checked all the other store_texel() functions.
* intel: fix GLESv1 supportChia-I Wu2011-09-013-8/+58
| | | | | | | Add intelInitExtensionsES1 to enable required and optional GLESv1 extensions. Reviewed-by: Ian Romanick <[email protected]>
* intel: rename intel_extensions_es2.c to intel_extensions_es.cChia-I Wu2011-09-017-4/+4
| | | | | | We'd like to add intelInitExtensionsES1 to it later. Reviewed-by: Ian Romanick <[email protected]>
* i915: build i915_dri.so for AndroidChia-I Wu2011-09-012-0/+63
| | | | | | | Simple demos such as test-opengl-gl_basic work. SurfaceFlinger does not work yet due to missing GL_OES_draw_texture support (and maybe more). Reviewed-by: Chad Versace <[email protected]>
* i915: factor our source lists into Makefile.sourcesChia-I Wu2011-09-012-47/+53
| | | | | | | | In preparation for porting i915 to Android, factor its source lists into a shared makefile. This prevents duplication of source lists, and hence prevents the Android build from breaking as often. Reviewed-by: Chad Versace <[email protected]>
* i965: fix Android buildChia-I Wu2011-09-012-4/+8
| | | | | | Use $(TARGET_CC) instead of $(CC). Correctly name and set LOCAL_CFLAGS. Reviewed-by: Chad Versace <[email protected]>
* mesa: Replace the EmitNoIfs compiler flag with a MaxIfDepth flag.Bryan Cain2011-08-315-14/+10
| | | | | | | This is a better, more fine-grained way of lowering if statements. Fixes the game And Yet It Moves on nv50. Reviewed-by: Ian Romanick <[email protected]>
* wayland: Track changes to drop wl_visualKristian Høgsberg2011-08-318-39/+108
|
* egl_dri2: Only clear EGL_PIXMAP_BIT if DRI config is double bufferedKristian Høgsberg2011-08-311-2/+4
| | | | | | | We don't want to set the pixmap bit in the EGL config if the DRI config we're adding is a double buffered config. However, don't clear any other bits the platform might pass in in the surface_type argument.
* wayland: Track server side wayland changesKristian Høgsberg2011-08-312-35/+37
|
* wayland: Use new wl_callback mechanismKristian Høgsberg2011-08-311-31/+24
|
* mesa: fix comment typo: s/GL_SIGNED_NORMALED/GL_SIGNED_NORMALIZED/Brian Paul2011-08-311-1/+1
|
* glsl: Use a separate div_to_mul_rcp lowering flag for integers.Bryan Cain2011-08-315-63/+80
| | | | | | | | | | | | | | Using multiply and reciprocal for integer division involves potentially lossy floating point conversions. This is okay for older GPUs that represent integers as floating point, but undesirable for GPUs with native integer division instructions. TGSI, for example, has UDIV/IDIV instructions for integer division, so it makes sense to handle this directly. Likewise for i965. Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Bryan Cain <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
* mesa: bump max program local params, max uniforms limitBrian Paul2011-08-311-2/+2
| | | | | | Some driver support more than 1024. Reviewed-by: Ian Romanick <[email protected]>
* swrast: initialize program native limitsBrian Paul2011-08-311-0/+22
| | | | Reviewed-by: Ian Romanick <[email protected]>
* i965/vs: Avoid the emit(), remove(), insert_before() for array instructions.Eric Anholt2011-08-312-46/+56
| | | | | | | v2: Add generator instructions for the scratch opcodes. Add emit_before() for handling ->ir and ->annotation inheritance. Reviewed-by: Kenneth Graunke <[email protected]>
* i965/vs: Move logic for weird CMP type handling to CMP generators.Eric Anholt2011-08-312-40/+23
| | | | | | v2: Don't bother with the no-dst-reg version of CMP() Reviewed-by: Kenneth Graunke <[email protected]>
* i965/vs: Convert emit() calls to the new instruction generators.Eric Anholt2011-08-311-166/+127
| | | | Reviewed-by: Kenneth Graunke <[email protected]>
* i965/vs: Convert gen6 userclip handling to new generators.Eric Anholt2011-08-311-3/+3
| | | | | | | | This DP4 had one of its operands missing, so we were generating garbage clip distances. Using the per-opcode instruction generators made it obvious. Reviewed-by: Kenneth Graunke <[email protected]>
* i965/vs: Create instruction generators outside of the emit() functions.Eric Anholt2011-08-312-0/+90
| | | | | | v2: Fixed gen6 IF(). Reviewed-by: Kenneth Graunke <[email protected]>
* egl_dri2: Drop dri2_surface_type enumBenjamin Franzke2011-08-312-18/+9
| | | | | Was only used in platform_wayland, and the remaining egl stack uses _EGLSurface::Type with one of EGL_{WINDOW,PIXMAP,PBUFFER}_BIT.
* egl_dri2: add pbuffer support to platform_androidChia-I Wu2011-08-311-5/+16
| | | | | | This is a simple change thanks to allocateBuffer. Reviewed-by: Chad Versace <[email protected]>
* egl_dri2: check the surface type in platform_androidChia-I Wu2011-08-311-45/+56
| | | | | | | Check the surface type is EGL_WINDOW_BIT before doing anything, in preparation for pbuffer support. Reviewed-by: Chad Versace <[email protected]>