diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-08-23 05:48:39 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-08-25 02:44:28 +0200 |
commit | 574ba4b5f50bfe661427327cd792a8a200559376 (patch) | |
tree | e553edcd2139cd7ff628fe8f939c46d3b55a7eda /src/mesa/drivers/dri/r300/compiler/radeon_compiler.h | |
parent | 4b9b2a3cdc6a809b2e583a21b888ed59e5c20aec (diff) |
r300/compiler: implement elimination of unused constants
Wine likes to create a *lot* of constants, exceeding the size of the constant
file in hw.
Diffstat (limited to 'src/mesa/drivers/dri/r300/compiler/radeon_compiler.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/compiler/radeon_compiler.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h b/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h index 7c42eb3ae5..5155b912e1 100644 --- a/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h +++ b/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h @@ -39,9 +39,12 @@ struct radeon_compiler { char * ErrorMsg; /* Hardware specification. */ - unsigned is_r500; + unsigned is_r500:1; unsigned max_temp_regs; + /* Whether to remove unused constants and empty holes in constant space. */ + unsigned remove_unused_constants:1; + /** * Variables used internally, not be touched by callers * of the compiler |