diff options
author | Jason Ekstrand <[email protected]> | 2017-05-12 23:12:12 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-05-26 07:58:01 -0700 |
commit | 332a5d7a3f28f1c8b1231959085f1421e5c0c535 (patch) | |
tree | 26d6eb2ed04ed7addc4abcf601b170163608bf89 /src/intel/isl/isl_surface_state.c | |
parent | 8958355549014d67778f46665bfc4da645d8cf40 (diff) |
intel/isl: Add support for setting component write disables
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel/isl/isl_surface_state.c')
-rw-r--r-- | src/intel/isl/isl_surface_state.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index fa464694862..d63b245ef23 100644 --- a/src/intel/isl/isl_surface_state.c +++ b/src/intel/isl/isl_surface_state.c @@ -256,6 +256,12 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state, s.SurfaceFormat = info->view->format; +#if GEN_GEN <= 5 + s.ColorBufferComponentWriteDisables = info->write_disables; +#else + assert(info->write_disables == 0); +#endif + #if GEN_IS_HASWELL s.IntegerSurfaceFormat = isl_format_has_int_channel(s.SurfaceFormat); #endif |