mesa: rename src/mesa/shader/ to src/mesa/program/
mesa: Remove no-op wrappers around trig functions.
mesa: Remove _mesa_pow(), which is always just pow().
glsl: Fix handling of OPCODE_PRINT for no registers case. A register file value is unsigned so could never be -1. A value of 0 also aliased to PROGRAM_TEMPORARY. If an OPCODE_PRINT has no registers to print, set the register file value to PROGRAM_UNDEFINED and check for that value when executing this instruction.
Revert "mesa: Remove pointless comparison of unsigned integer with a negative constant." This reverts commit a05fdbcb719ac64e6be842372813f0f4ca2f4f93. Removing the comparison is wrong. The comparison with -1 should be changed to another value (probably PROGRAM_UNDEFINED) along with another change in the shader assembler. Conflicts: src/mesa/shader/prog_execute.c
mesa: remove abs/negate from fetch_vector1ui() This function is only used for the NV unpack instructions. Negate/abs make no sense and removing the code fixes Windows compiler warnings. Found by Karl Schultz.
Replace the _mesa_*printf() wrappers with the plain libc versions
mesa: Remove pointless comparison of unsigned integer with a negative constant.
mesa: Fix compiler warnings Add explicit casts, fix constant types, fix variable types. Fixes about 340 warnings in MSFT Visual Studio.
mesa: debug output for ARL
mesa: fix double->float assignment warnings, int/uint comparison warnings Reported by Karl Schultz.
Merge branch 'mesa_7_7_branch' Conflicts: src/mesa/shader/prog_execute.c
mesa: use new fetch_vector1ui() function for 'unpack' GPU instructions The UP2H, UP2US, UP4B and UP4UB instructions interpret the float registers as integers. With gcc -O3 some bits were getting mixed up somewhere. This is part of the fix for the piglit fp-unpack-01 test failure (bug 25973).
Merge branch 'mesa_7_7_branch' Conflicts: src/gallium/auxiliary/draw/draw_context.c src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c src/gallium/auxiliary/pipebuffer/Makefile src/gallium/auxiliary/pipebuffer/SConscript src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/auxiliary/tgsi/tgsi_scan.c src/gallium/drivers/i915/i915_surface.c src/gallium/drivers/i915/i915_texture.c src/gallium/drivers/llvmpipe/lp_setup.c src/gallium/drivers/llvmpipe/lp_tex_sample_c.c src/gallium/drivers/llvmpipe/lp_texture.c src/gallium/drivers/softpipe/sp_prim_vbuf.c src/gallium/state_trackers/xorg/xorg_dri2.c src/gallium/winsys/drm/intel/gem/intel_drm_api.c src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c src/gallium/winsys/drm/radeon/core/radeon_drm.c src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c src/mesa/state_tracker/st_cb_clear.c
glsl: Remove unnecessary header from prog_execute.c.
mesa: adjust OPCODE_IF/ELSE BranchTarget fields to point to ELSE/ENDIF instr. This is a little more logical. Suggested in bug report 25654.
mesa: adjust BRK/CONT BranchTarget to always point to ENDLOOP instruction To be more consistant.
mesa: added some assertions in BNGLOOP/ENDLOOP cases
mesa: fix shader prog_execute strict aliasing violations use unions instead of pointer casts.
mesa: Return -FLT_MAX instead of 0 for LG2(0). lim x->0 log(x) = -inf so -FLT_MAX is a better approximation than 0 for LG2(0).