mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
i965: Pass tObj into intel_update_max_level instead of intel_obj.
We want both anyway, but this will simplify things a tiny bit in an upcoming patch. Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
876f1537e9
commit
0a2e878c69
1 changed files with 3 additions and 3 deletions
|
|
@ -43,10 +43,10 @@
|
|||
* allow sampling beyond level 0.
|
||||
*/
|
||||
static void
|
||||
intel_update_max_level(struct intel_texture_object *intelObj,
|
||||
intel_update_max_level(struct gl_texture_object *tObj,
|
||||
struct gl_sampler_object *sampler)
|
||||
{
|
||||
struct gl_texture_object *tObj = &intelObj->base;
|
||||
struct intel_texture_object *intelObj = intel_texture_object(tObj);
|
||||
|
||||
if (!tObj->_MipmapComplete ||
|
||||
(tObj->_RenderToTexture &&
|
||||
|
|
@ -85,7 +85,7 @@ intel_finalize_mipmap_tree(struct brw_context *brw, GLuint unit)
|
|||
*/
|
||||
assert(intelObj->base._BaseComplete);
|
||||
|
||||
intel_update_max_level(intelObj, sampler);
|
||||
intel_update_max_level(tObj, sampler);
|
||||
|
||||
/* What levels does this validated texture image require? */
|
||||
int validate_first_level = tObj->BaseLevel;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue