summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* glsl: Drop explicit types of lower_mat_op_to_vec expressions.Eric Anholt2011-06-291-27/+6
| | | | | | The constructor can figure it out for us these days. Reviewed-by: Kenneth Graunke <[email protected]>
* drisw: Remove cargo culting that breaks GLX 1.3 ctorsAdam Jackson2011-06-291-4/+0
| | | | Signed-off-by: Adam Jackson <[email protected]>
* glx: Verify that drawable creation on the client side actually workedAdam Jackson2011-06-292-26/+63
| | | | | | ... and clean up if it didn't. Signed-off-by: Adam Jackson <[email protected]>
* glx: Alias glXFreeContextEXT to glXDestroyContextAdam Jackson2011-06-291-14/+6
| | | | Signed-off-by: Adam Jackson <[email protected]>
* i965/gen7: Add missing ! to brw->gs.prog_active assertion.Kenneth Graunke2011-06-291-1/+1
| | | | | | | | | A typo in commit c173541d9769 accidentally removed the !. It's supposed to assert that there is _not_ an active GS program. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38762 Signed-off-by: Kenneth Graunke <[email protected]>
* mesa: bump version to 7.12 (devel)Brian Paul2011-06-291-2/+2
|
* i915g: Move definition of M_PI in i915_fpc_translate.cJon TURNEY2011-06-291-5/+3
| | | | | | | | Move defintion of M_PI (for the benefit of <math.h> which do not define it), to before the first use of it Signed-off-by: Jon TURNEY <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* st/mesa: s/tex_usage/bindings/ in st_format.hBrian Paul2011-06-291-1/+1
| | | | Just be consistent with the .c file.
* st/mesa: Use correct internal targetEmil Velikov2011-06-291-2/+2
| | | | | | | | | | | Commit 1a339b6c(st/mesa: prefer native texture formats when possible) introduced two new arguments to the st_choose_format() functions. This patch fixes the order and passes the correct internal_target rather than GL_NONE NOTE: This is a candidate for the 7.11 branch Signed-off-by: Emil Velikov <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* st/glx: Fix compilation errorThomas Hellstrom2011-06-292-4/+4
| | | | | | | Fix compilation error due to commit "Rework how drawables are invalidated v3" Signed-off-by: Thomas Hellstrom <[email protected]>
* st/mesa: fix overwriting gl_format with pipe_format since 9d380f48Andre Maasikas2011-06-291-2/+2
| | | | | | fixes assert later on in texcompress2/r600g Signed-off-by: Brian Paul <[email protected]>
* st/dri: Get rid of the evil struct dri_drawable::context memberThomas Hellstrom2011-06-292-5/+0
| | | | | | It's incorrect to assume a single context bound to a drawable. Signed-off-by: Thomas Hellstrom <[email protected]>
* st-api: Rework how drawables are invalidated v3.Thomas Hellstrom2011-06-2914-120/+121
| | | | | | | | | | | | | | | The api and the state tracker manager code as well as the state tracker code assumed that only a single context could be bound to a drawable. That is not a valid assumption, since multiple contexts can bind to the same drawable. Fix this by making it the state tracker's responsibility to update all contexts binding to a drawable Note that the state trackers themselves don't use atomic stamps on frame-buffers. Multiple context rendering to the same drawable should be protected by the application. Signed-off-by: Thomas Hellstrom <[email protected]>
* i915g: Fix unimplemented Abs comment.Stéphane Marchesin2011-06-291-1/+1
|
* i915g: If we have a program, that means the other fields are ours and we can ↵Stéphane Marchesin2011-06-281-3/+5
| | | | | | free them. Otherwise they probably belong to draw.
* i915g: Don't overflow the program buffer.Stéphane Marchesin2011-06-281-13/+25
| | | | Otherwise it corrupts other fields of the struct and hilarity ensues.
* i915g: Update the TODO with another idea.Stéphane Marchesin2011-06-281-0/+2
|
* glsl: Rewrote _mesa_glsl_process_extension to use table-driven logic.Paul Berry2011-06-281-109/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of using a chain of manually maintained if/else blocks to handle "#extension" directives, we now consult a table that specifies, for each extension, the circumstances under which it is available, and what flags in _mesa_glsl_parse_state need to be set in order to activate it. This makes it easier to add new GLSL extensions in the future, and fixes the following bugs: - Previously, _mesa_glsl_process_extension would sometimes set the "_enable" and "_warn" flags for an extension before checking whether the extension was supported by the driver; as a result, specifying "enable" behavior for an unsupported extension would sometimes cause front-end support for that extension to be switched on in spite of the fact that back-end support was not available, leading to strange failures, such as those in https://bugs.freedesktop.org/show_bug.cgi?id=38015. - "#extension all: warn" and "#extension all: disable" had no effect. Notes: - All extensions are currently marked as unavailable in geometry shaders. This should not have any adverse effects since geometry shaders aren't supported yet. When we return to working on geometry shader support, we'll need to update the table for those extensions that are available in geometry shaders. - Previous to this commit, if a shader mentioned ARB_shader_texture_lod, extension ARB_texture_rectangle would be automatically turned on in order to ensure that the types sampler2DRect and sampler2DRectShadow would be defined. This was unnecessary, because (a) ARB_shader_texture_lod works perfectly well without those types provided that the builtin functions that reference them are not called, and (b) ARB_texture_rectangle is enabled by default in non-ES contexts anyway. I eliminated this unnecessary behavior in order to make the behavior of all extensions consistent. NOTE: This is a candidate for the 7.10 and 7.11 branches. Reviewed-by: Ian Romanick <[email protected]>
* glsl: Changed extension enable bits to bools.Paul Berry2011-06-281-22/+22
| | | | | | | | | | These were previously 1-bit-wide bitfields. Changing them to bools has a negligible performance impact, and allows them to be accessed by offset as well as by direct structure access. NOTE: This is a candidate for the 7.10 and 7.11 branches. Reviewed-by: Ian Romanick <[email protected]>
* glsl: permit explicit locations on fragment shader outputs, not inputsPaul Berry2011-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | From the OpenGL docs for GL_ARB_explicit_attrib_location: This extension provides a method to pre-assign attribute locations to named vertex shader inputs and color numbers to named fragment shader outputs. This was accidentally implemented for fragment shader inputs. This patch fixes it to apply to fragment shader outputs. Fixes piglit tests spec/ARB_explicit_attrib_location/1.{10,20}/compiler/layout-{01,03,06,07,08,09,10}.frag Reviewed-by: Ian Romanick <[email protected]> NOTE: This is a candidate for the 7.10 and 7.11 branches. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38624
* i915g: Fix comment about sin/cos constants.Stéphane Marchesin2011-06-281-2/+2
|
* i915g: Fix staging texture uploads a bit.Stéphane Marchesin2011-06-281-5/+1
| | | | They still look corrupted, but at least now they don't look tiled any more.
* i965: Reissue PIPELINE_POINTERS and BINDING_TABLE_POINTERS on SBA change.Eric Anholt2011-06-286-12/+55
| | | | | This was a requirement we didn't run into until we started using STATE_BASE_ADDRESS for instruction data.
* i965/gen6: Fix scissors using invalid STATE_BASE_ADDRESS.Eric Anholt2011-06-281-2/+2
| | | | | | | | The scissor state was incorrectly in a .prepare function instead of .emit, so the packet would end up in the batch before the STATE_BASE_ADDRESS. It appears that this doesn't actually hurt, as the scissor address gets dereferenced according to the current SBA at draw time.
* i915g: Add a debug_printf when we get the Abs flag.Stéphane Marchesin2011-06-281-0/+3
|
* i915g: Support PIPE_FORMAT_B10G10R10A2_UNORM.Stéphane Marchesin2011-06-283-0/+10
|
* i915g: Improve SIN/COS a bit.Stéphane Marchesin2011-06-281-20/+20
|
* i915g: When emulating LUMINANCE8 and INTENSITY8 texutres, route alpha properly.Stéphane Marchesin2011-06-281-2/+2
| | | | That fixes some formats in fbo-alphatest-formats.
* i915g: fix shadow compare.Stéphane Marchesin2011-06-282-1/+26
| | | | "Works" as well as i915c now.
* targets/egl-static: fix library search orderChia-I Wu2011-06-281-2/+2
| | | | | | | | | | | | Use $(MKLIB) -ldflags '-L$(TOP)/$(LIB_DIR)' instead of $(MKLIB) -L$(TOP)/$(LIB_DIR) to make sure the local library path appears before system's.
* st/egl: update fbdev backendChia-I Wu2011-06-283-173/+241
| | | | | | | | | | | | | | | | | Considering fbdev as an in-kernel window system, - opening a device opens a connection - there is only one window: the framebuffer - fb_var_screeninfo decides window position, size, and even color format - there is no pixmap Now EGL is built on top of this window system. So we should have - the fd as the handle of the native display - reject all but one native window: NULL - no pixmap support modeset support is still around, but it should be removed soon.
* i915g: Enable GL_ARB_instanced_arrays.Stéphane Marchesin2011-06-272-2/+1
|
* 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.
* 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.