summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2012-01-20fixups since the shm format enums changedwaylandRobert Bragg1-4/+3
2012-01-16egl_dri2: add triple buffering support to drm platformAnder Conselvan de Oliveira2-1/+89
2012-01-16gbm: add a release_buffer callback to dri backendAnder Conselvan de Oliveira2-0/+10
This adds a mechanism for the egl platform code to be notified when the user releases a bo created from a surface.
2012-01-16gbm: implement gbm_surface_get_bo in dri backendAnder Conselvan de Oliveira3-1/+56
2012-01-16egl_dri2: implement get_buffers and swap_buffers in drm platformAnder Conselvan de Oliveira1-1/+152
2012-01-16gbm: creates hooks for dri2_loader_extension in dri backendAnder Conselvan de Oliveira2-2/+68
2012-01-16egl_dri2: use gbm_surface as the native window type in drm platformAnder Conselvan de Oliveira2-1/+106
2012-01-16gbm: implement basic gbm_surface on dri backendAnder Conselvan de Oliveira2-1/+25
Make gbm_surface_create return something that the drm egl platform can use.
2012-01-16egl_dri2: make flush extension useable by drm platformAnder Conselvan de Oliveira3-0/+3
2012-01-16gbm: add gbm_surface interfaceAnder Conselvan de Oliveira4-0/+83
The implementation is empty for now, but the idea here is to be able to create an egl window surface from a gbm_surface. gbm_surface_get_bo should return a valid bo for the current front buffer of the surface. Getting a bo will mark it as in use until the user call gbm_surface_release_bo. The egl platform may use this information to do triple buffering.
2012-01-16SwapBuffersRegionNOK: invert rectangles on y axisRobert Bragg1-2/+1
The EGL_NOK_swap_region2 spec states that the rectangles are specified with a bottom-left origin within a surface coordinate space also with a bottom left origin, so this patch ensures the rectangles are flipped before passing them on to dri2_copy_region.
2012-01-16d3d1x: mesh::mesh() don't use index_format as factorRobert Bragg1-1/+1
This fixes a typo whereby bufferd.ByteWidth was being calculated as (index_offset + index_format * num_indices) where index_format is a DXG1_FORMAT_ enum and what was surely intended was to multiply by index_size instead.
2012-01-16egl: Adds EGL_INTEL_native_event_objects supportRobert Bragg2-0/+60
The EGL_INTEL_native_event_objects extension provides a mechanism for EGL to process events based on the operating system's native event delivery mechanism. The extension itself doesn't actually define any events so on its own it's somewhat benign but it provides a basis to define further extensions that handle specific events. Examples of events we'd hope to see become available once this extension is in place are: Swap buffers complete events to notify when an asynchronous eglSwapBuffers request has completed and sync object events to notify when a sync object becomes signaled.
2012-01-16glBindTexture: Bail out earlier for redundant bindsRobert Bragg1-14/+14
Commit 7f8000db8bd4 made it possible to bail out of glBindTexture early in single context environments when the user is rebinding the same texture name. This makes the early exit even earlier by comparing the given texName with texUnit->CurrentTex[targetIndex]->Name instead of waiting until we have validated the given texture name and found the corresponding gl_texture_object. If it matches then it's implicitly validated.
2012-01-16vl: Make array initialization portable.José Fonseca1-1/+4
Should fix MSVC build.
2012-01-15i915g: Fix the blending for the A8 destination buffer case.Stéphane Marchesin4-12/+29
The i915 GPU can't do A8 dst, so we abuse GREEN8 buffers for that purpose. However, things get hairy as we start to do blending, because then GL_DST_*_ALPHA should be replaced with GL_DST_*_COLOR. This is what we do here. Fixes piglt fbo-alpha.
2012-01-15r200: remove left-over EGL_SOURCES variableMatt Turner1-1/+0
Rest was removed in 2a928899e. Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-01-15r600g: fix mullo_uint trans slot only on r600/r700Dave Airlie1-1/+1
This fixes 8 piglit tests that currently assert. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-01-15r600g: implement clip distancesVadim Girlin6-17/+111
Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-01-15r600g: implement two-sided lighting (v3)Vadim Girlin6-25/+135
v2: select the colors in the pixel shader v3: fix rs state creation for pre-evergreen Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-01-15r600g: add support for ISHR/USHR/SHL on r600-evergreenVadim Girlin2-10/+13
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
2012-01-15r600g: implement IDIV/UDIV on r600-evergreenVadim Girlin1-4/+222
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
2012-01-15r600g: implement ISSG on r600-evergreenVadim Girlin1-0/+63
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
2012-01-15r600g: implement IABS on r600-evergreenVadim Girlin1-0/+60
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
2012-01-15r600g: implement F2U on evergreenVadim Girlin1-2/+2
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
2012-01-15r600g: add FLT_TO_UINT opcode for evergreenVadim Girlin2-1/+4
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
2012-01-15r600g: fix F2I on evergreenVadim Girlin1-1/+50
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
2012-01-15vl: fix YV12 handlingChristian König4-9/+49
We actually implemented YV21 instead of YV12, so fix the plane ordering. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15st/vdpau: recreate video buffer if decode doesn't like itChristian König1-1/+21
Recreate the video buffer if the decoder can't handle it. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15st/vdpau: recreate video buffer if format doesn't matchChristian König2-19/+37
Recreate the video buffer in PutBitsYCbCr if the format doesn't match. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15vl: reintroduce PIPE_VIDEO_CAP_PREFERED_FORMATChristian König8-3/+24
Create the video buffers in the format the driver preffers. This temporary creates problems with decoder less VDPAU video playback. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15vl: add h264 infrastructureChristian König2-0/+107
No implementation so far, just the defines for VDPAUs picture info structure. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15vl: move away from state like parametersChristian König9-403/+293
Again based on Maartens work, but keep begin_frame and end_frame functions for now. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15vl/video_buffer: add support for interlaced buffersChristian König3-13/+25
Add the infrastructure, but not the decode implementation. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15vl/video_buffer: improve constructorChristian König2-45/+84
Add a second extened constructor that takes plane textures for the video buffer. Also provide a function for texture templates. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15vl/video_buffer: use template style create paramsChristian König7-69/+71
Just like in the rest of gallium, this reduces the number of parameters significantly. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15r600g: vertex id support.Dave Airlie1-8/+15
This requires GLSL 1.30 enabled, which requires integer types enabled, so don't bother doing an INT to FLT conversion on it. We should probably remove the instance id flt->int conversion when turning on native integers. this passes the three piglit tests with GLSL 1.30 forced on. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-01-15r600g: make u2f trans onlyDave Airlie1-1/+1
as per the r600 isa doc. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-01-15nvfx: random cleanups of the state validation codeLucas Stach1-27/+22
Signed-off-by: Lucas Stach <dev@lynxeye.de>
2012-01-15nvfx: drop render temporaries codeLucas Stach4-172/+18
This code is unneeded now, we don't use render temps any more. Signed-off-by: Lucas Stach <dev@lynxeye.de>
2012-01-15nvfx: rework state_fb code to get rid of render tempsLucas Stach4-146/+72
This commit rewrites a lot of the state_fb code to support rendering to targets not aligned to 64 byte. This allows us to drop the render temporaries as unaligned targets are the only use-case where they are really needed. The temporaries code was used for a lot of things more, but apparently those also work without temps. There is one regression in piglit fbo-clear-formats, but this will be fixed with the use of real hardware clears and doesn't matter in practice as no real application tries to scissor clear a 2x2 pixel render target. Signed-off-by: Lucas Stach <dev@lynxeye.de>
2012-01-15nvfx: say no to stream output capsLucas Stach1-1/+5
nvfx doesn't support any kind of stream out, so silence the unused cap warnings. Signed-off-by: Lucas Stach <dev@lynxeye.de>
2012-01-15mesa: update compute_version for GL3Marek Olšák1-4/+2
only check ARB_fbo, add shader_texture_lod as a requirement Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-01-15gallium: improve the pipe_stream_output_info struct (v2)Marek Olšák13-151/+57
There are 3 changes: 1) stride is specified for each buffer, not just one, so that drivers don't have to derive it from the outputs 2) new per-output property dst_offset, which specifies the offset into the buffer in dwords where the output should be stored, so that drivers don't have to compute the offsets manually; this will also be useful for gl_SkipComponents from ARB_transform_feedback3 3) register_mask is removed, instead, there is start_component and num_components; register_mask with non-consecutive 1s doesn't make much sense (some hardware cannot do packing of components) Christoph Bumiller: fixed nvc0. v2: resolve merge conflicts in Draw and clean it up
2012-01-14r600g: add r600 version of UINT_TO_FLT conversion.Dave Airlie1-0/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-01-14r600g: fix r600 f2i to be trans only emitted.Dave Airlie1-1/+1
This fixes a lot of asserts about the trans unit being used already. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-01-14r600g: add missing case for uint->flt conversion.Dave Airlie1-0/+1
fixes some piglits like vs-decrement-uint.shader_test Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-01-14r600g: add missing r32 uint/sint fbo formats.Dave Airlie2-0/+8
Fixes the GL3 required formats test. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-01-13r600g: add support for virtual address space on cayman v11Jerome Glisse13-48/+370
Virtual address space put the userspace in charge of their GPU address space. It's up to userspace to bind bo into the virtual address space. Command stream can them be executed using the IB_VM chunck. This patch add support for this configuration. It doesn't remove the 64K ib size limit thought this limit can be extanded up to 1M for IB_VM chunk. v2: fix rendering v3: fix rendering when using index buffer v4: make vm conditional on kernel support add basic va management v5: catch the case when we already have va for a bo v6: agd5f: update on top of ioctl changes v7: agd5f: further ioctl updates v8: indentation cleanup + fix non cayman v9: rebase against lastest mesa + improvement from Marek & Michel v10: fix cut/paste bug v11: don't rely on updated radeon_drm.h Signed-off-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2012-01-13scons: Fix libGL.so build.Roland Scheidegger1-0/+1