diff options
author | Kenneth Graunke <[email protected]> | 2019-02-28 01:13:33 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-03-07 11:39:27 -0800 |
commit | 4787bc944a2d219dd04201eef699d9f999b479b8 (patch) | |
tree | 082f124a94a40b269150e8b2e5c42ef91f393d41 /src/mesa/drivers | |
parent | 575f8e8b60ab06e559a62ffe90913453352f32b4 (diff) |
isl: Add a swizzle parameter to isl_buffer_fill_state()
This is necessary for legacy texture buffer object formats, where we'll
need to use a swizzle to fake e.g. luminance.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index a0984791614..8175fbf0db4 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -647,6 +647,7 @@ brw_emit_buffer_surface_state(struct brw_context *brw, reloc_flags), .size_B = buffer_size, .format = surface_format, + .swizzle = ISL_SWIZZLE_IDENTITY, .stride_B = pitch, .mocs = brw_get_bo_mocs(devinfo, bo)); } |