mesa/src
Kenneth Graunke 8d0bb74a11 i965/fs: Add fs_reg::is_zero() and is_one(); use for opt_algebraic().
These helper macros save you from writing nasty expressions like:

   if ((inst->src[1].type == BRW_REGISTER_TYPE_F &&
         inst->src[1].imm.f == 1.0) ||
        ((inst->src[1].type == BRW_REGISTER_TYPE_D ||
          inst->src[1].type == BRW_REGISTER_TYPE_UD) &&
         inst->src[1].imm.u == 1)) {

Instead, you simply get to write inst->src[1].is_one().  Simple.
Also, this makes the FS backend match the VS backend (which has these).

This patch also converts opt_algebraic to use the new helper functions.
As a consequence, it will now also optimize integer-typed expressions.

Reviewed-by: Eric Anholt <eric@anholt.net>
2012-11-30 13:15:39 -08:00
..
egl egl/wayland: Don't invalidate drawable on swap buffers 2012-11-30 11:08:04 -05:00
gallium util: added pipe_surface_release() function 2012-11-30 12:08:07 -07:00
gbm gbm: Use the kms dumb ioctls for cursor instead of libkms 2012-10-21 13:00:49 -04:00
getopt
glsl glcpp: Update README for new support of __LINE__ and __FILE__. 2012-11-29 13:03:02 -08:00
glx mesa: Standardize names of OpenGL functions. 2012-11-12 10:53:57 -08:00
gtest
mapi mesa: Rename API_OPENGL to API_OPENGL_COMPAT. 2012-11-29 11:33:15 -08:00
mesa i965/fs: Add fs_reg::is_zero() and is_one(); use for opt_algebraic(). 2012-11-30 13:15:39 -08:00
.gitignore
Makefile.am
SConscript