iris: add minor comments

This commit is contained in:
Kenneth Graunke 2018-07-30 22:59:52 -07:00
parent 9d39e69219
commit 387a414f2c
2 changed files with 5 additions and 1 deletions

View file

@ -314,8 +314,10 @@ struct iris_context {
/** 3DSTATE_STREAMOUT and 3DSTATE_SO_DECL_LIST packets */
uint32_t *streamout;
/** The SURFACE_STATE for a 1x1x1 null surface. */
struct iris_state_ref unbound_tex;
/** The SURFACE_STATE for a framebuffer-sized null surface. */
struct iris_state_ref null_fb;
struct u_upload_mgr *surface_uploader;

View file

@ -2686,6 +2686,7 @@ iris_populate_binding_table(struct iris_context *ice,
if (stage == MESA_SHADER_FRAGMENT) {
struct pipe_framebuffer_state *cso_fb = &ice->state.framebuffer;
/* Note that cso_fb->nr_cbufs == fs_key->nr_color_regions. */
if (cso_fb->nr_cbufs) {
for (unsigned i = 0; i < cso_fb->nr_cbufs; i++) {
if (cso_fb->cbufs[i])
@ -2693,8 +2694,9 @@ iris_populate_binding_table(struct iris_context *ice,
else
bt_map[s++] = use_null_fb_surface(batch, ice);
}
} else
} else {
bt_map[s++] = use_null_fb_surface(batch, ice);
}
}
//assert(prog_data->binding_table.texture_start ==