nv50,nvc0: get format desc for TIC entry from sampler view format
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 4 Mar 2011 21:17:36 +0000 (22:17 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 4 Mar 2011 23:51:07 +0000 (00:51 +0100)
Fixes piglit/tex-srgb.

src/gallium/drivers/nv50/nv50_tex.c
src/gallium/drivers/nvc0/nvc0_tex.c

index e9d6e5f201644a7618c899d37ec5c285238af803..9192d2e25901a50fb4b9d920a5afbd97a445956b 100644 (file)
@@ -79,7 +79,7 @@ nv50_create_sampler_view(struct pipe_context *pipe,
 
    tic = &view->tic[0];
 
-   desc = util_format_description(mt->base.base.format);
+   desc = util_format_description(view->pipe.format);
 
    /* TIC[0] */
 
index a6f393d1eccefc2666b2a18f0a81fec8dd153e17..24850b199860d1061fc052769c3b3d4fa1c7ec2b 100644 (file)
@@ -78,7 +78,7 @@ nvc0_create_sampler_view(struct pipe_context *pipe,
 
    tic = &view->tic[0];
 
-   desc = util_format_description(mt->base.base.format);
+   desc = util_format_description(view->pipe.format);
 
    /* TIC[0] */