summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-09-15Merge remote branch 'origin/nv50-compiler'Christoph Bumiller
Conflicts: src/gallium/drivers/nouveau/nouveau_class.h src/gallium/drivers/nv50/nv50_screen.c
2010-09-15llvmpipe: return zero from floor_pot(zero)Keith Whitwell
2010-09-15nv50: put low limit on REG_ALLOC_TEMP and FP_RESULT_COUNTChristoph Bumiller
2010-09-15nv50: improve and fix modifier folding optimizationChristoph Bumiller
Execute before folding loads, because we don't check if it's legal in lower_mods. Ensure that a value's insn pointer is updated when transferring it to a different instruction.
2010-09-15nv50: consider address register in reload eliminationChristoph Bumiller
2010-09-15llvmpipe: remove duplicate codeKeith Whitwell
Bad rebase presumably.
2010-09-15llvmpipe: brackets around macro argKeith Whitwell
2010-09-15glapi: Fix ES build errors again.Chia-I Wu
This fixes an error in GLAPI ES. My build is ok with or without this patch, and the error affects others' setups. [Patch from Francesco Marella]
2010-09-15r600g: Silence unused variable warning.Vinson Lee
The code that uses dname is currently ifdef'ed out.
2010-09-15r600g: Silence uninitialized variable warning.Vinson Lee
2010-09-15r600g: Silence uninitialized variable warning.Vinson Lee
2010-09-15r600g: Silence uninitialized variable warning.Vinson Lee
2010-09-15nvfx: Silence uninitialized variable warnings.Vinson Lee
2010-09-15r600g: Silence uninitialized variable warning.Vinson Lee
2010-09-15r600g: Silence uninitialized variable warning.Vinson Lee
2010-09-15glsl: Fix 'format not a string literal and no format arguments' warning.Vinson Lee
Fix the following GCC warning. loop_controls.cpp: In function 'int calculate_iterations(ir_rvalue*, ir_rvalue*, ir_rvalue*, ir_expression_operation)': loop_controls.cpp:88: warning: format not a string literal and no format arguments
2010-09-15r300g: fix buffer reuse issue caused by previous commitDave Airlie
caused by 0b9eb5c9bb03e5134d9a41786178100109e80c5a test run glxgears, resize.
2010-09-15glapi: Fix build errors for ES.Chia-I Wu
The latest glext.h defines GL_FIXED. Test GL_OES_fixed_point instead to decide whether to define GLfixed and GLclampx. This fixes fdo bug #30205.
2010-09-15r600c: fix buffer height setting in dri2 caseAndre Maasikas
fbHeight is 0 in this case uncovered by changes in b0bc026c and should fix kernel rejecting command streams after that commit
2010-09-15r300g: prevent creating multiple winsys BOs for the same handleMarek Olšák
This fixes a DRM deadlock in the cubestorm xscreensaver, because somehow there must not be 2 different BOs relocated in one CS if both BOs back the same handle. I was told it is impossible to happen, but apparently it is not, or there is something else wrong.
2010-09-14mesa: Include missing header in program.h.Vinson Lee
Include compiler.h for ASSERT symbol.
2010-09-14r600g: Remove unnecessary headers.Vinson Lee
2010-09-14auxiliary: fix unintended fallthroughLuca Barbieri
2010-09-14llvmpipe: Remove unnecessary header.Vinson Lee
2010-09-14glx: add const qualifiers to __indirect_glMultiDrawArraysEXT()Brian Paul
2010-09-14r600c: fix setting negative values to bitfieldsAndre Maasikas
when setting negative integers to bitfields we could overwrite other parts of it. So mask the value to be written correctly. This is used quite often in the driver - hope it doesnt affect performace or uncover behaviour relied before... fixes strange effects when setting negative lodbias on evergreen
2010-09-14mesa: upgrade wglext.h to version 22Brian Paul
2010-09-14mesa: upgrade glxext.h to version 32Brian Paul
2010-09-14mesa: update to version 64 of GL/glext.hBrian Paul
A number of other files had to be updated as well because const qualifiers were added to the glMultiDrawArrays() function. Also, GL_FIXED is now defined in glext.h.
2010-09-14mesa: move, redefine MESA_GEOMETRY_PROGRAMBrian Paul
2010-09-14glsl2: add case for ir_unop_noiseBrian Paul
Silences a compiler warning. Still need to add some assertions for this case.
2010-09-14glsl2: fix commentsBrian Paul
2010-09-14mesa: Remove unnecessary FEATURE tests.Chia-I Wu
Remove all FEATURE tests in mesa/drivers/common/. They are not needed and the code looks better without them.
2010-09-14mesa: Less FEATURE_ARB_sync tests.Chia-I Wu
Add dummy static inline definitions to syncobj.h when FEATURE_ARB_sync is 0, and remove most FEATURE_ARB_sync tests.
2010-09-14mesa: Remove unused _MESA_INIT_*_FUNCTIONS.Chia-I Wu
They were intended to be used to build OpenGL ES only DRI drivers, but that never happened.
2010-09-14gallivm: Remove unnecessary header.Vinson Lee
2010-09-14llvmpipe: Initialize variable for potentially unhandled switch case.Vinson Lee
2010-09-14i965g: Fix 'control reaches end of non-void function' warning.Vinson Lee
Fixes the following GCC warning. brw_screen.c: In function 'brw_get_shader_param': brw_screen.c:241: warning: control reaches end of non-void function
2010-09-13i915g: Fix 'control reaches end of non-void function' warning.Vinson Lee
Fixes the following GCC warning. i915_screen.c: In function 'i915_get_shader_param': i915_screen.c:184: warning: control reaches end of non-void function
2010-09-13i915: Fix "implicit declaration of function 'draw_get_shader_param'" warning.Vinson Lee
Fixes the following GCC warning. i915_screen.c: In function 'i915_get_shader_param': i915_screen.c:147: warning: implicit declaration of function 'draw_get_shader_param'
2010-09-13identity: Fix 'assignment from incompatible pointer type' warning.Vinson Lee
This is a follow-up to commit a508d2dddcc67d0f92cc36b9ed6f36a9bbfc579d. Fixes the following GCC warning. id_screen.c: In function 'identity_screen_create': id_screen.c:317: warning: assignment from incompatible pointer type
2010-09-13rbug: Fix 'assignment from incompatible pointer type' warning.Vinson Lee
This is a follow-up to commit a508d2dddcc67d0f92cc36b9ed6f36a9bbfc579d. Fixes the following GCC warning. rbug_screen.c: In function 'rbug_screen_create': rbug_screen.c:331: warning: assignment from incompatible pointer type
2010-09-14mesa/st: ask GLSL to not emit noise since we have a dummy implementationLuca Barbieri
Note, BTW, that the Gallium implementation returns 0.5, which seems to violate the GLSL spec, where it should return 0.0 instead. Not sure whether changing it to 0 is correct or not.
2010-09-14mesa/st: set compiler options based on Gallium shader capsLuca Barbieri
This turns on if conversion and unlimited loop unrolling if control flow is not supported. NOTE: this will change the behavior of r300g and any other driver that doesn't advertise control flow
2010-09-14gallium: introduce get_shader_param (ALL DRIVERS CHANGED) (v3)Luca Barbieri
Changes in v3: - Also change trace, which I forgot about Changes in v2: - No longer adds tessellation shaders Currently each shader cap has FS and VS versions. However, we want a version of them for geometry, tessellation control, and tessellation evaluation shaders, and want to be able to easily query a given cap type for a given shader stage. Since having 5 duplicates of each shader cap is unmanageable, add a new get_shader_param function that takes both a shader cap from a new enum and a shader stage. Drivers with non-unified shaders will first switch on the shader and, within each case, switch on the cap. Drivers with unified shaders instead first check whether the shader is supported, and then switch on the cap. MAX_CONST_BUFFERS is now per-stage. The geometry shader cap is removed in favor of checking whether the limit of geometry shader instructions is greater than 0, which is also used for tessellation shaders. WARNING: all drivers changed and compiled but only nvfx tested
2010-09-13glsl2: Port equal() and notEqual() to ir_unop_all_equal and ir_unop_any_nequalIan Romanick
2010-09-13glsl: introduce ir_binop_all_equal and ir_binop_any_equal, allow vector cmpsLuca Barbieri
Currently GLSL IR forbids any vector comparisons, and defines "ir_binop_equal" and "ir_binop_nequal" to compare all elements and give a single bool. This is highly unintuitive and prevents generation of optimal Mesa IR. Hence, first rename "ir_binop_equal" to "ir_binop_all_equal" and "ir_binop_nequal" to "ir_binop_any_nequal". Second, readd "ir_binop_equal" and "ir_binop_nequal" with the same semantics as less, lequal, etc. Third, allow all comparisons to acts on vectors. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-09-13loop_unroll: unroll loops with (lowered) breaksLuca Barbieri
If the loop ends with an if with one break or in a single break unroll it. Loops that end with a continue will have that continue removed by the redundant jump optimizer. Likewise loops that end with an if-statement with a break at the end of both branches will have the break pulled out after the if-statement. Loops of the form for (...) { do_something1(); if (cond) { do_something2(); break; } else { do_something3(); } } will be unrolled as do_something1(); if (cond) { do_something2(); } else { do_something3(); do_something1(); if (cond) { do_something2(); } else { do_something3(); /* Repeat inserting iterations here.*/ } } ir_lower_jumps can guarantee that all loops are put in this form and thus all loops are now potentially unrollable if an upper bound on the number of iterations can be found. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-09-13glsl2: Add pass to remove redundant jumpsIan Romanick
2010-09-13glsl: Explain file naming conventionIan Romanick