diff options
author | Axel Davy <[email protected]> | 2019-04-27 18:30:02 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2019-04-30 19:18:51 +0200 |
commit | 12654a2fda53d46246d4f0f1f792377b57ad769e (patch) | |
tree | 3bdb32ddbeff1c3ededb4cca4f4c8f09164e31c8 /src/gallium/state_trackers | |
parent | 95f25bef546806c8d0e6670aceadf28eb64aea1a (diff) |
st/nine: Control shader constant inlining with drirc
Until we use async shader compilation for constant inlining,
don't enable it unless user asks for it.
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/nine/adapter9.h | 1 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/device9.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/adapter9.h b/src/gallium/state_trackers/nine/adapter9.h index ba20a3abe87..605444cbc8d 100644 --- a/src/gallium/state_trackers/nine/adapter9.h +++ b/src/gallium/state_trackers/nine/adapter9.h @@ -43,6 +43,7 @@ struct d3dadapter9_context BOOL tearfree_discard; int csmt_force; BOOL dynamic_texture_workaround; + BOOL shader_inline_constants; void (*destroy)( struct d3dadapter9_context *ctx ); }; diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 78ca58d3c27..6d29378a7bc 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -491,9 +491,10 @@ NineDevice9_ctor( struct NineDevice9 *This, This->driver_caps.ps_integer = pScreen->get_shader_param(pScreen, PIPE_SHADER_FRAGMENT, PIPE_SHADER_CAP_INTEGERS); This->driver_caps.offset_units_unscaled = GET_PCAP(POLYGON_OFFSET_UNITS_UNSCALED); + This->context.inline_constants = pCTX->shader_inline_constants; /* Code would be needed when integers are not available to correctly * handle the conversion of integer constants */ - This->context.inline_constants = This->driver_caps.vs_integer && This->driver_caps.ps_integer; + This->context.inline_constants &= This->driver_caps.vs_integer && This->driver_caps.ps_integer; nine_ff_init(This); /* initialize fixed function code */ |