i965: Take an isl_format in emit_buffer_surface_state
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3932>
This commit is contained in:
@@ -628,7 +628,7 @@ brw_emit_buffer_surface_state(struct brw_context *brw,
|
||||
uint32_t *out_offset,
|
||||
struct brw_bo *bo,
|
||||
unsigned buffer_offset,
|
||||
unsigned surface_format,
|
||||
enum isl_format format,
|
||||
unsigned buffer_size,
|
||||
unsigned pitch,
|
||||
unsigned reloc_flags)
|
||||
@@ -646,7 +646,7 @@ brw_emit_buffer_surface_state(struct brw_context *brw,
|
||||
bo, buffer_offset,
|
||||
reloc_flags),
|
||||
.size_B = buffer_size,
|
||||
.format = surface_format,
|
||||
.format = format,
|
||||
.swizzle = ISL_SWIZZLE_IDENTITY,
|
||||
.stride_B = pitch,
|
||||
.mocs = brw_get_bo_mocs(devinfo, bo));
|
||||
|
||||
Reference in New Issue
Block a user