diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2017-02-28 18:14:49 -0800 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2017-03-01 16:14:02 -0800 |
commit | 4e274bcf668e82b19715e8784bdc018d0ff439ba (patch) | |
tree | 2c316b1ddcca7f5791152ea799a4b0f39deeb144 | |
parent | 252324166048914119b5d8cfbd1fead907bbc1ed (diff) |
i965: Move BRW_MAX_DRAW_BUFFERS to brw_compiler.h
It does sort-of go with MAX_UBO and friends but MAX_DRAW_BUFFERS is an
actual hardware constant based on the number of things we can blend
rather than an arbitrary "number of things allowed in GL" like some of
the other maximums are.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_compiler.h | 3 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_compiler.h b/src/mesa/drivers/dri/i965/brw_compiler.h index c048a4dc7af..4102280ce6f 100644 --- a/src/mesa/drivers/dri/i965/brw_compiler.h +++ b/src/mesa/drivers/dri/i965/brw_compiler.h @@ -344,6 +344,9 @@ struct brw_image_param { uint32_t swizzling[2]; }; +/** Max number of render targets in a shader */ +#define BRW_MAX_DRAW_BUFFERS 8 + /** * Max number of binding table entries used for stream output. * diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 7132eaed82c..e252261f20b 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -363,9 +363,6 @@ struct brw_ff_gs_prog_data { /** Number of texture sampler units */ #define BRW_MAX_TEX_UNIT 32 -/** Max number of render targets in a shader */ -#define BRW_MAX_DRAW_BUFFERS 8 - /** Max number of UBOs in a shader */ #define BRW_MAX_UBO 14 |