summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* i915g: Fix a bug in facing.Stéphane Marchesin2011-06-273-7/+7
| | | | However doesn't work because of limitations in the draw module.
* i965: step message register allocationBen Widawsky2011-06-271-5/+5
| | | | | | | | The system routine requires m0 be reserved for saving off architectural state. Moved the allocation to start at 2 instead of 0. Signed-off-by: Ben Widawsky <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* glsl: Fix depth unbalancing problem in if-statement flatteningIan Romanick2011-06-271-3/+1
| | | | | | | | | | | | | | | | | | | | | | Previously, if max_depth were 1, the following code would see the first if-statement (correctly) not get flattened, but the second if-statement would (incorrectly) get flattened: void main() { if (a) gl_Position = vec4(0); if (b) gl_Position = vec4(1); } This is because the visit_leave(ir_if*) method would not decrement the depth before returning on the first if-statement. NOTE: This is a candidate for the 7.10 and 7.11 branches. Reviewed-by: Kenneth Graunke <[email protected]>
* i915g: Remove unused cbuf_dirty.Stéphane Marchesin2011-06-271-2/+0
|
* i915g: Add a comment about a bug.Stéphane Marchesin2011-06-271-0/+1
|
* i915g: initial support for SEMANTIC_FACE.Stéphane Marchesin2011-06-273-5/+28
| | | | Doesn't work yet, see TODO.
* i915g: update TODO.Stéphane Marchesin2011-06-271-0/+13
|
* i915g: Return the max result for the fake occlusion queries.Stéphane Marchesin2011-06-271-1/+2
|
* i915g: Fix depth texture formats.Stéphane Marchesin2011-06-271-9/+39
| | | | Depth compare still looks broken though.
* i915g: Fix u_blitter comment.Stéphane Marchesin2011-06-271-1/+2
|
* i915g: Implement fake DDX/DDY.Stéphane Marchesin2011-06-271-0/+12
|
* i915g: Fix gl_FragCoord.Stéphane Marchesin2011-06-273-44/+13
|
* egl: Fix Terminate with shared gbm screensBenjamin Franzke2011-06-273-2/+9
| | | | NOTE: This is a candidate for the 7.11 branch.
* st/d3d1x: fix for st/egl native.h interface changeChia-I Wu2011-06-271-14/+19
| | | | The interface was changed in 73df31eedd0f33c8a9907855cb247c8f87964c48.
* configure.ac: sort Gallium directories alphabeticallyMarek Olšák2011-06-271-0/+6
|
* targets/egl-static: fix building without libudevChia-I Wu2011-06-261-1/+2
| | | | Thanks to José for pointing out.
* targets/egl-static: refactor drm_fd_get_screen_nameChia-I Wu2011-06-261-28/+53
| | | | Add drm_fd_get_pci_id to get the PCI ID. Fix a leak with udev on error.
* st/egl: fix a compile errorChia-I Wu2011-06-261-2/+1
| | | | It is triggered when --with-driver=xlib is specified.
* targets/gbm: attemp to fix unresolved symbolsChia-I Wu2011-06-261-9/+22
| | | | | Move system libraries (usually .so) out of --start-group / --end-group pair. Add possiblly missing archives, defines, and shared libraries.
* r300g: drop support for ARGB, ABGR, XRGB, XBGR render targetsMarek Olšák2011-06-251-21/+0
| | | | | | | | Blending and maybe even alpha-test don't work with those formats. Only supporting RGBA, BGRA, RGBX, BGRX. NOTE: This is a candidate for the 7.10 and 7.11 branches.
* Revert "Fix 24bpp software rendering"Brian Paul2011-06-253-89/+4
| | | | This reverts commit c0c0bb6cb140825f5bab3c40c0c9c0ec575fbc76.
* egl: fix EGL_MATCH_NATIVE_PIXMAPChia-I Wu2011-06-251-2/+10
| | | | | EGL_MATCH_NATIVE_PIXMAP is valid for eglChooseConfig, but invalid for eglGetConfigAttrib.
* st/egl: add get_pixmap_format callback to native_displayChia-I Wu2011-06-255-47/+65
| | | | | And use it for EGL_MATCH_NATIVE_PIXMAP. Remove is_pixmap_supported meanwhile.
* egl: make implementing eglChooseConfig easierChia-I Wu2011-06-253-63/+63
| | | | | Add a new helper function, _eglFilterConfigArray, for drivers and hide _eglSortConfigs.
* targets/egl-static: do not use DRI_LIB_DEPSChia-I Wu2011-06-251-3/+3
| | | | It brings in libraries that are not necessarily needed.
* st/egl: add a fast path for ximage eglCopyBuffersChia-I Wu2011-06-251-1/+40
|
* st/egl: clean up eglCopyBuffersChia-I Wu2011-06-257-42/+63
| | | | | Add copy_to_pixmap method to native_display and use it for eglCopyBuffers.
* st/egl: reorganize backend initializationChia-I Wu2011-06-2514-197/+172
| | | | | | | Remove set_event_handler() and pass the event handler with native_get_XXX_platform(). Add init_screen() so that the pipe screen is created later. This way we don't need to pass user_data to create_display().
* i915g: always upload the vs constants.7.11-branchpointStéphane Marchesin2011-06-241-9/+7
| | | | This fixes a crash in llvm draw.
* i965/gen5: Fix grf_used calculation for 16-wide.Eric Anholt2011-06-241-5/+4
| | | | | | | | | | If we happened to allocate a texture result (or other vector) to the highest hardware register slot, and we were in 16-wide, we would under-count the registers used and potentially wrap around to g0 if that allocation crossed a 16-register block boundary. Bad rendering and hangs ensued. Tested-by: Ian Romanick <[email protected]>
* i915g: add fake occlusion queries.Stéphane Marchesin2011-06-245-0/+125
| | | | Those always return 0, but at least we don't crash when exposing GL 2.0.
* i915g: Don't do shader fixup if no surface is bound.Stéphane Marchesin2011-06-241-3/+9
|
* i915g: Fix point sprites.Stéphane Marchesin2011-06-248-31/+204
|
* indices: fix conversion of PIPE_PRIM_POLYGON to linesBrian Paul2011-06-242-3/+8
| | | | | | | | | When the fill mode is PIPE_POLYGON_MODE_LINE we were basically converting the polygon into triangles, then drawing the outline of all the triangles. But we really only want to draw the lines around the perimeter of the polygon, not the interior lines. NOTE: This is a candidate for the 7.10 branch.
* i965: fix mask used to write to clip distance registers when gen>6Paul Berry2011-06-241-1/+1
| | | | | | | | | | | | | In gen6 and above, clip distances 0-3 are written to message register 3's xyzw components, and 4-7 to message register 4's xyzw components. Therefore when when writing the clip distances we need to examine the lower 2 bits of the clip distance index to see which component to write to. emit_vertex_write() was examining the lower 3 bits, causing clip distances 4-7 not to be written correctly. Fixes piglit test vs-clip-vertex-01.shader_test
* r600g: limit fs_write_all shader rebuild to eg+Alex Deucher2011-06-241-1/+1
| | | | Signed-off-by: Alex Deucher <[email protected]>
* r600g: eg+ support for FS_COLOR0_WRITES_ALL_CBUFSAlex Deucher2011-06-246-30/+61
| | | | | | | | | Evergreen+ don't support multi-writes so we need to emulate it in the shader. Fixes the following piglit tests: fbo-drawbuffers-fragcolor ati_draw_buffers-arbfp-no-option Signed-off-by: Alex Deucher <[email protected]>
* intel: Fix workaround for _mesa_update_framebufferChad Versace2011-06-241-3/+5
| | | | | | | | | | | In intel_draw_buffer, there exists a workaround to prevent _mesa_update_framebuffer from creating a swrast depth wrapper when using separate stencil. This commit fixes the workaround, which was incomplete for s8z24 texture renderbuffers. Fixes fbo-blit-d24s8 on gen5 with separate stencil manually enabled. Signed-off-by: Chad Versace <[email protected]>
* intel: Change framebuffer validation criteriaChad Versace2011-06-241-10/+3
| | | | | | | | Since all infrastructure is now in place to support packed depth/stencil renderbuffers when using separate stencil, there is no need for special cases when separate stencil is enabled. Signed-off-by: Chad Versace <[email protected]>
* intel: In intel_update_wrapper, support s8z24 textures when using separate ↵Chad Versace2011-06-241-6/+35
| | | | | | | | | | stencil Also, in order to coerce intel_update_tex_wrapper_regions() to allocate the hiz region, alter intel_update_tex_wrapper_regions() to examine the renderbuffer format instead of the texture image format. Signed-off-by: Chad Versace <[email protected]>
* intel: Factor region updates out of intel_update_wrapperChad Versace2011-06-241-0/+18
| | | | | | | | | | | ... and into new function intel_update_tex_wrapper_regions. This prevents code duplication in the next commit. Also add a note explaining that the hiz region is broken for mipmapped depth textures. Signed-off-by: Chad Versace <[email protected]>
* intel: During glTexImage, allocate renderbuffers for faking s8z24 texturesChad Versace2011-06-241-0/+62
| | | | | | | | | ... when using separate stencil. Define function intel_tex_image_x8z24_create_renderbuffers and call it in intelTexImage after the miptree has been created and filled with data. Signed-off-by: Chad Versace <[email protected]>
* intel: Declare some functions in intel_fbo.c as non-staticChad Versace2011-06-242-2/+14
| | | | | | | | | | ... because they will be needed by intel_tex_image_s8z24_create_renderbuffers. Redeclared functions are: intel_alloc_renderbuffer_storage intel_renderbuffer_set_draw_offsets Signed-off-by: Chad Versace <[email protected]>
* intel: Change signature of intel_create_wrapped_renderbufferChad Versace2011-06-242-22/+12
| | | | | | | | | | Redeclare as non-static because intel_tex_image_s8z24_create_renderbuffers will use it. Remove the 'wrapper' parameter, because there is no wrapper for intel_texture_image.depth_rb and stencil_rb. Signed-off-by: Chad Versace <[email protected]>
* intel: Perform gather on s8z24 texture images during glGetTexImageChad Versace2011-06-241-0/+8
| | | | Signed-off-by: Chad Versace <[email protected]>
* intel: Define functions intel_texture_s8z24_scatter/gatherChad Versace2011-06-241-0/+70
| | | | | | | ... which copy the stencil bits between intel_image->depth_rb and intel_image->stencil_rb. Signed-off-by: Chad Versace <[email protected]>
* intel: Add fields to intel_texture for faking s8z24 with separate stencilChad Versace2011-06-243-12/+40
| | | | | | | | Add the fields depth_rb and stencil_rb, and put hooks in place to release the renderbuffers in intelFreeTextureImageData and intelTexImage. Signed-off-by: Chad Versace <[email protected]>
* st/mesa: add PIPE_FORMAT_R8G8B8A8_UNORM as the first RGBA format.Stéphane Marchesin2011-06-241-1/+1
| | | | | | | Otherwise we can end up creating RGBA render targets (which are BGRA on the hardware), and then we bind them as RGBA textures (which are RGBA on the hardware). This generates software fallbacks every time we bind the frame as a texture.
* mesa: don't allocate memory in _mesa_unpack_depth_span if we don't need itMarek Olšák2011-06-241-7/+7
| | | | Reviewed-by: Brian Paul <[email protected]>
* mesa: fix a memory leak in _mesa_unpack_depth_spanMarek Olšák2011-06-241-0/+1
| | | | | | NOTE: This is a candidate for the 7.10 branch. Reviewed-by: Brian Paul <[email protected]>