v3dv: assert that our framebuffers are single sampled

This makes it easier to track CTS test fails related to multisampling,
which we don't support yet.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga 2020-06-23 12:11:30 +02:00 committed by Marge Bot
parent 95caf46602
commit ddb352b8f9
1 changed files with 3 additions and 0 deletions

View File

@ -1856,6 +1856,9 @@ cmd_buffer_emit_render_pass_rcl(struct v3dv_cmd_buffer *cmd_buffer)
const struct v3dv_image *image = iview->image;
const struct v3d_resource_slice *slice = &image->slices[iview->base_level];
/* FIXME */
assert(image->samples == VK_SAMPLE_COUNT_1_BIT);
const uint32_t *clear_color =
&state->attachments[attachment_idx].clear_value.color[0];