diff options
author | Eric Anholt <[email protected]> | 2017-10-25 12:51:04 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-10-30 13:31:27 -0700 |
commit | fe6fc579cbdc040a9bd62170c3713546dd112ae5 (patch) | |
tree | 19b5e796d6bf80f580ff7c7efd00d0fc12f7538b /src/gallium/drivers/vc5/vc5_resource.c | |
parent | 0ec4b4178f5df2353e97eb6e414040a46bfc728d (diff) |
broadcom/vc5: Use the sampler view's format, not the resource's.
This should help with texture views, though I just noticed this while
reading the code.
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_resource.c')
-rw-r--r-- | src/gallium/drivers/vc5/vc5_resource.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/drivers/vc5/vc5_resource.c b/src/gallium/drivers/vc5/vc5_resource.c index e1ed46039a1..29623d9ba2c 100644 --- a/src/gallium/drivers/vc5/vc5_resource.c +++ b/src/gallium/drivers/vc5/vc5_resource.c @@ -574,9 +574,6 @@ vc5_resource_create_with_modifiers(struct pipe_screen *pscreen, return NULL; } - if (tmpl->target != PIPE_BUFFER) - rsc->tex_format = vc5_get_tex_format(prsc->format); - vc5_setup_slices(rsc, "create"); if (!vc5_resource_bo_alloc(rsc)) goto fail; @@ -649,8 +646,6 @@ vc5_resource_from_handle(struct pipe_screen *pscreen, vc5_setup_slices(rsc, "import"); - rsc->tex_format = vc5_get_tex_format(prsc->format); - DBG(V3D_DEBUG_SURFACE, "rsc import %p (format %s), %dx%d: " "level 0 (R) -> stride %d@0x%08x\n", |