summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-09-03intel: fix build errorHEADmasterYuanhan Liu1-1/+1
Fix a build error introduced by commit 6862b54f: i965_dri.so.tmp: undefined reference to `strerr' Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Paul Berry <stereotype441@gmail.com>
2011-09-02mesa: handle zero-size buffers in MapBuffer and ranges in MapBufferRange (v3)Marek Olšák2-25/+31
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-09-02glsl_to_tgsi: fix more potential shader reference leaksMarek Olšák1-0/+10
The last one has been pointed out by Ian.
2011-09-02intel: Give an explanation why we are exiting for debugging.Eugeni Dodonov1-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 <eugeni.dodonov@intel.com>
2011-09-02i965/vs: Fix NULL pointer dereference in pre-Gen6 push constant loading.Kenneth Graunke1-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 <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
2011-09-02intel: Upload batchbuffer contents even if INTEL_NO_HW is set.Eric Anholt1-8/+8
It is useful for debugging to dump batchbuffers while not actually executing them.
2011-09-02gallium: add caps for MIN/MAX texel offsets.Dave Airlie4-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 <airlied@redhat.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2011-09-02tgsi: add support for texture offsets to the TGSI IR. (v2)Dave Airlie13-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 <airlied@redhat.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2011-09-01st/vdpau: Implement VdpOutputSurfacePutBitsIndexed and ↵Christian König4-19/+307
VdpOutputSurfaceRenderOutputSurface This gets mplayers menu overlay working. Signed-off-by: Christian König <deathsimple@vodafone.de>
2011-09-01st/xvmc: the alpha component of palette entries isn't usedChristian König1-1/+1
2011-09-01g3dvl: extend the functionality of the compositorChristian König5-33/+81
Prepares for vdpau menu overlay.
2011-09-01gallium: add R8A8 and A8R8 UNORM formatsChristian König2-0/+4
They are mostly used for menu overlay in video decoding. Signed-off-by: Christian König <deathsimple@vodafone.de>
2011-09-01st/xvmc: remove L4A4_UNORM workaroundChristian König1-33/+5
This is no longer needed, since we now have native support for IA44 and AI44. Signed-off-by: Christian König <deathsimple@vodafone.de>
2011-09-01r600g: add support for R4A4 and A4R4 textures.Christian König2-0/+8
Sampling worked out of the box, but this make them work as surface as well. Signed-off-by: Christian König <deathsimple@vodafone.de>
2011-09-01gallium: try to cleanup a bit of the format mess created with pipe-video mergeChristian König4-82/+7
Start with correctly defining IA44 and AI44 formats. Signed-off-by: Christian König <deathsimple@vodafone.de>
2011-09-01wayland: Use wl_resource_* error functionsKristian Høgsberg1-10/+10
2011-09-01egl_dri2: Destroy callback in release_pending_bufferBenjamin Franzke1-0/+2
2011-09-01wayland-drm: Fix compilation with wayland masterBenjamin Franzke1-9/+9
c661ecce introduced some not-yet-upstream stuff.
2011-08-31swrast: get rid of needless do/whileBrian Paul1-2/+2
2011-08-31mesa: fix broken store_texel() functionsBrian Paul2-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.
2011-09-01intel: fix GLESv1 supportChia-I Wu3-8/+58
Add intelInitExtensionsES1 to enable required and optional GLESv1 extensions. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2011-09-01intel: rename intel_extensions_es2.c to intel_extensions_es.cChia-I Wu7-4/+4
We'd like to add intelInitExtensionsES1 to it later. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2011-09-01i915: build i915_dri.so for AndroidChia-I Wu3-2/+65
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 <chad@chad-versace.us>
2011-09-01i915: factor our source lists into Makefile.sourcesChia-I Wu2-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 <chad@chad-versace.us>
2011-09-01i965: fix Android buildChia-I Wu2-4/+8
Use $(TARGET_CC) instead of $(CC). Correctly name and set LOCAL_CFLAGS. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-31mesa: Replace the EmitNoIfs compiler flag with a MaxIfDepth flag.Bryan Cain5-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 <ian.d.romanick@intel.com>
2011-08-31wayland: Track changes to drop wl_visualKristian Høgsberg8-39/+108
2011-08-31egl_dri2: Only clear EGL_PIXMAP_BIT if DRI config is double bufferedKristian Høgsberg1-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.
2011-08-31wayland: Track server side wayland changesKristian Høgsberg2-35/+37
2011-08-31wayland: Use new wl_callback mechanismKristian Høgsberg1-31/+24
2011-08-31mesa: fix comment typo: s/GL_SIGNED_NORMALED/GL_SIGNED_NORMALIZED/Brian Paul1-1/+1
2011-08-31glsl: Use a separate div_to_mul_rcp lowering flag for integers.Bryan Cain5-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 <ian.d.romanick@intel.com> Signed-off-by: Bryan Cain <bryancain3@gmail.com> Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2011-08-31mesa: bump max program local params, max uniforms limitBrian Paul1-2/+2
Some driver support more than 1024. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2011-08-31swrast: initialize program native limitsBrian Paul1-0/+22
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2011-08-31i965/vs: Avoid the emit(), remove(), insert_before() for array instructions.Eric Anholt2-46/+56
v2: Add generator instructions for the scratch opcodes. Add emit_before() for handling ->ir and ->annotation inheritance. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-08-31i965/vs: Move logic for weird CMP type handling to CMP generators.Eric Anholt2-40/+23
v2: Don't bother with the no-dst-reg version of CMP() Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-08-31i965/vs: Convert emit() calls to the new instruction generators.Eric Anholt1-166/+127
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-08-31i965/vs: Convert gen6 userclip handling to new generators.Eric Anholt1-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 <kenneth@whitecape.org>
2011-08-31i965/vs: Create instruction generators outside of the emit() functions.Eric Anholt2-0/+90
v2: Fixed gen6 IF(). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-08-31egl_dri2: Drop dri2_surface_type enumBenjamin Franzke2-18/+9
Was only used in platform_wayland, and the remaining egl stack uses _EGLSurface::Type with one of EGL_{WINDOW,PIXMAP,PBUFFER}_BIT.
2011-08-31egl_dri2: add pbuffer support to platform_androidChia-I Wu1-5/+16
This is a simple change thanks to allocateBuffer. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-31egl_dri2: check the surface type in platform_androidChia-I Wu1-45/+56
Check the surface type is EGL_WINDOW_BIT before doing anything, in preparation for pbuffer support. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-31egl_dri2: refactor droid_get_buffers_with_formatChia-I Wu1-27/+39
Move the loop to parse attachments to its own function. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-31egl_dri2: set ctx->WindowRenderBufferChia-I Wu1-0/+6
Set ctx->WindowRenderBuffer to EGL_BACK_BUFFER. As EGL_WINDOW_BIT of a config is set only when there is dri_double_buffer, that makes sure window surfaces are always double-buffered and contexts will render to the back buffer. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-31nv50,nvc0: fix multisample format hackChristoph Bumiller2-2/+2
Advertising different format support based on sample count was a bad idea, it made resolve to window work, but resolve to anything else would fail. See 9f4998639c3c47f0b7ee3e2a29b7f3609d3f7796.
2011-08-30intel: Restructure TexSubImage as just the 2D implementation and blit func.Eric Anholt1-100/+114
Fixes a segfault in piglit copyteximage where I accidentally removed the dst_bo setup in the previous cleanup. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40474 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Tested-by: Sean McNamara <gm.potato.ul@gmail.com> Tested-by: Ian Romanick <ian.d.romanick@intel.com>
2011-08-30intel: Remove the passthrough TexSubImage[13]D functions.Eric Anholt1-42/+0
All we need for these is _mesa_store_texsubimage[13]d(), since we don't do the blit path. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Tested-by: Ian Romanick <ian.d.romanick@intel.com>
2011-08-30i965/vs: Fix GL_FIXED setup when a writemask is present.Eric Anholt2-13/+24
By emitting code before generate_code(), we ended up in align1 mode where writemasks don't exist, so we rescaled gl_Vertex.w and things went badly. By moving GL_FIXED support to the visitor, we end up with normal codegen, and as a bonus the GL_FIXED setup ends up getting printed appropriately in debug output. Fixes gtf/GL2Tests/fixed_data_type Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-08-30i965/vs: Pack live uniform vectors together in the push constant upload.Eric Anholt4-3/+98
At some point we need to also move uniform accesses out to pull constants when there are just too many in use, but we lack tests for that at the moment. Fixes glsl-vs-large-uniform-array. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-08-30i965/vs: Track uniforms as separate vectors once we've done array access.Eric Anholt3-0/+38
This will make it easier to figure out which elements are totally unused and not upload them. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>