diff options
author | Kenneth Graunke <[email protected]> | 2018-08-09 03:28:24 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:08 -0800 |
commit | be60e3247cbe0a788f8fe25e8abdb7803711f7a2 (patch) | |
tree | a3ea39144704c4913f9a770512fbe281414c7ec6 /src/gallium/drivers/iris/iris_resource.c | |
parent | b932938d013b45c3532a4d5412776e7d69ef7c03 (diff) |
iris: drop stencil handling now that u_transfer_helper does it
Diffstat (limited to 'src/gallium/drivers/iris/iris_resource.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_resource.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index 3c2e3848a1e..444619ac46c 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -293,13 +293,8 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen, enum pipe_format pfmt = templ->format; res->internal_format = pfmt; - if (util_format_is_depth_and_stencil(pfmt)) { - struct pipe_resource t = *templ; - t.format = PIPE_FORMAT_S8_UINT; - res->base.next = - iris_resource_create_with_modifiers(pscreen, &t, NULL, 0); - pfmt = util_format_get_depth_only(pfmt); - } + /* Should be handled by u_transfer_helper */ + assert(!util_format_is_depth_and_stencil(pfmt)); enum isl_format isl_format = iris_isl_format_for_pipe_format(pfmt); assert(isl_format != ISL_FORMAT_UNSUPPORTED); |